Question: What is the time complexity of pushing an element onto a stack?
Options:
Correct Answer: O(1)
Solution:
Pushing an element onto a stack is done in constant time, hence O(1).