Question: What is the space complexity of a queue implemented using two stacks?
Options:
Correct Answer: O(n)
Solution:
The space complexity of a queue implemented using two stacks is O(n) as it requires space for all elements in the queue.