A little wonder, every day
Binary search among a million items
1 / 3
AI-generated conceptual sorted cards and search diagram; illustrative, not a specific execution.
Listen to fact0:00 / —
Binary search works on sorted data: it compares the target with the middle item and repeatedly narrows the range. For an array of one million items, the standard algorithm needs at most 20 middle-item checks.


