Question: If a binary search is performed on a sorted array of size n, what is the space complexity?
Options:
Correct Answer: O(1)
Solution:
The space complexity of binary search is O(1) when implemented iteratively, as it uses a constant amount of space.