Search a rotated sorted array
A sorted array, rotated: one half is always in order, so you can still halve the search.
Values40, 52, 67, 81, 3, 9, 15, 22, 31target 15
40, 52, 67, 81, 3, 9, 15, 22, 31 is sorted, then rotated. Search it for 15.
- compare
- swap or write
- settled
Space play · ← → step · Home End jump · drag the strip to scrub