01 · Question
Suppose an array of length n sorted in ascending order is rotated between 1 and n times. Given the rotated array nums of unique elements, return the minimum element.
Example:
- Input:
nums = [4,5,6,7,0,1,2] - Output:
0
01 · Question
Suppose an array of length n sorted in ascending order is rotated between 1 and n times. Given the rotated array nums of unique elements, return the minimum element.
Example:
nums = [4,5,6,7,0,1,2]0