Binary search requires the array to be
- A
Unsorted
- B
Of even length
- Ccheck_circle
Sorted
- D
All positive
Explanation
Binary search relies on order to halve the search space each step.
AP Computer Science A· difficulty 4/5
Binary search requires the array to be
Unsorted
Of even length
Sorted
All positive
Explanation
Binary search relies on order to halve the search space each step.
Want 10 more like this — adaptive to your weak spots?