A sorted array was rotated at an unknown point. Find a target's index in O(log n) — in a single binary search, without first locating the pivot.
A sorted array was rotated at an unknown point. Find a target's index in O(log n) — in a single binary search, without first locating the pivot.
Opens with the full question.