Question: What is the space complexity of a recursive depth-first search (DFS) on a binary tree?
Options:
Correct Answer: O(n)
Solution:
The space complexity is O(n) due to the recursion stack in the worst case when the tree is skewed.