LC 33

Search in Rotated Sorted Array

Medium · LC 1–100

arraybinary-search
Free

Candidate solution routes

Primary

Binary Search on a Sorted Domain

Free

Invariant: At loop entry, an existing target lies inside closed interval [lo,hi]; every outside index has been disproved by sorted comparisons.

candidate confidence: 0.740 · metadata_only

How to use this page

Read the statement and constraints first, then validate recognition signals, invariant, and complexity. Candidate score is not correctness evidence.