CJCoding With Joseph
15free / daySign inCreate account
← Back to Question List

Select topics to narrow your question pool, then enable Random to jump to a random question matching your filters.

Topics:
Python Quiz #43

Why Binary Search Needs Order

easyData Structures & Algorithms

Binary search looks at the middle item and discards half of the list at each step. Why must the list be sorted first, and what is the complexity of the search?