Question: What is the space complexity of recursive tree traversals?
Options:
Correct Answer: O(log n)
Solution:
The space complexity of recursive tree traversals is O(h), where h is the height of the tree. In the worst case of a skewed tree, this can be O(n), but for balanced trees, it is O(log n).