一、问题描述
二、思路温习
class Solution(object):
def twoSum(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: List[int]
"""
if not nums:
return 0
for i in range(len(nums)-1):
for j in range(i+1,len(nums)):
if target==nums[i]+nums[j]:
return i,j