摘要:
'''Given an unsorted integer array, find the smallest missing positive integer.Example 1:Input: [1,2,0]Out... 阅读全文
摘要:
'''1:用一个变量right保存 left and nums[right] > k: right -= 1 if left < right: ... 阅读全文
摘要:
'''除了数字本身的其它数累乘,替换本身数字'''class Solution: def productExcludeItself(self, nums): nums_size = len(n... 阅读全文
摘要:
class Solution: """ @param nums: The rotated sorted array @return: nothing """ def recoverR... 阅读全文