旋转
Data Structures & Algorithms · 3 notes
- Search in Rotated Sorted Arrayhistorical
Given a rotated sorted array whose rotation count is unknown in advance (for example, 0 1 2 4 5 6 7 may become 4 5 6 7 0 1 2). Search for the given target value in the array.
- Find Peak Elementhistorical
A peak element is strictly greater than its neighbors. Find a peak in the given array and return its index.
- Find Minimum in Rotated Sorted Arrayhistorical
Given a rotated ascending array, find its minimum element.