輸出滿足要求的 兩數之和的兩數位置

如遇到[3,3],和6,下列好像需改進 class Solution(object): def twoSum(self, nums, target): 「」" :type nums: List[int] :type target: int :rtype: List[int] 「」" sorted_id=sorted(nums) b=nums head=0 tail=len(nums)-1 sum=
相關文章
相關標籤/搜索