category

Binary Search

Halve the search space each step over sorted or monotonic data.

Search in Rotated Sorted Arrayinteractive

Binary search a rotated array — one half is always still sorted.

Medium