Question: What is the space complexity of a breadth-first traversal of a binary tree?
Options:
Correct Answer: O(n)
Solution:
The space complexity of a breadth-first traversal is O(n) because it needs to store all nodes at the current level in the queue.