Question: If a binary search algorithm is implemented recursively, what is the space complexity due to recursion?
Options:
Correct Answer: O(log n)
Solution:
The space complexity of a recursive binary search is O(log n) due to the call stack used for recursion.