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]
The text was updated successfully, but these errors were encountered:
说实话我没看明白lz写的,但是测试了下我的,居然一样
The text was updated successfully, but these errors were encountered: