Skip to content
BytePatterns

Searching

Watch a search space collapse until only the answer is left.

Searching progress0 / 5
  1. Linear SearchThe simple one that always works. Often that's enough.3m
  2. Binary SearchA million records, twenty guesses. Sorted data only.5m
  3. Binary Search VariantsDon't just find it. Find the first one that qualifies.6m
  4. Search in Rotated ArrayHalf of it is still sorted. Find that half, use it.6m
  5. Binary Search on AnswerNo sorted array? Binary search the answer range.6m