167. Two Sum II - Input array is sorted

class Solution(object):
    def twoSum(self, numbers, target):
        """
        :type numbers: List[int]
        :type target: int
        :rtype: List[int]
        """
        left,right=0,len(numbers)-1
        while lefttarget:
                right-=1
            elif sum

你可能感兴趣的:(167. Two Sum II - Input array is sorted)