Question: What is the space complexity of a recursive preorder traversal of a binary tree?
Options:
Correct Answer: O(h)
Solution:
The space complexity of a recursive preorder traversal is O(h), where h is the height of the tree due to the call stack.