LeetCode 筆記|153. Find Minimum in Rotated Sorted Array
問題描述
Given the sorted rotated1 array
nums
of unique elements, return the minimum element of this array.
平移一嚴格遞增數列各項 n 單位後,求此數列的最小值
樣例
Input: nums = [3,4,5,1,2]
Output: 1
須留意幾個樣例:數列只含一項、數列只含兩項、平移後與原數列相同、最小值位於數列尾部