Question: What is the time complexity of checking if a stack is empty?
Options:
Correct Answer: O(1)
Solution:
Checking if a stack is empty is done in constant time, O(1), by checking if the size is zero.