Question: What is the space complexity of a recursive pre-order traversal of a binary tree?
Options:
Correct Answer: O(n)
Solution:
The space complexity is O(n) due to the recursion stack, which can go as deep as the height of the tree in the worst case.