输出满足要求的 两数之和的两数位置

如遇到[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=
相关文章
相关标签/搜索