Question: In a stack, what is the time complexity of accessing the top element?
Options:
Correct Answer: O(1)
Solution:
Accessing the top element of a stack is done in constant time, O(1), as it simply involves returning the last added element.