jianzhi-offer-python
jianzhi-offer-python copied to clipboard
剑指offer python版本
Results
2
jianzhi-offer-python issues
Sort by
recently updated
recently updated
newest added
https://kaiyuanyokii2n.com/offer-python.html 这个网址进不去了。之前会参考里面的思路讲解,github上没有。谢谢
在《剑指offer》书中提到的数组为 [1,0,1,1,1] 这种情况时,这里程序输出为1是不正确的,可以改为: ```python class Solution: def minNumberInRotateArray(self, rotateArray): # write code here if len(rotateArray) == 0: return 0 front = 0 rear = len(rotateArray) - 1 minVal = rotateArray[0]...