You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class Solution:
def minNumberInRotateArray(self, rotateArray):
if len(rotateArray)==0:
return 0
head =0
rear = len(rotateArray)-1
while rotateArray[head]<=rotateArray[head+1]:
head+=1
return rotateArray[head+1]