Question: In a stack, what is the time complexity of checking if it is empty?
Options:
Correct Answer: O(1)
Solution:
Checking if a stack is empty is done in constant time, O(1), as it only requires checking the size or the top pointer.