30:00
Suppose an array of length n sorted in ascending order is rotated between 1 and n times. Find the minimum element of this array.
n==nums.lengthn == \text{nums.length}n==nums.length
1≤n≤50001 \leq n \leq 50001≤n≤5000
−5000≤nums[i]≤5000-5000 \leq \text{nums}[i] \leq 5000−5000≤nums[i]≤5000
All integers in nums are unique.
nums
nums is sorted and rotated between 111 and nnn times.
3
4
5
1
2