- 博客(1)
- 收藏
- 关注
原创 给定一个整数数组 nums 和一个目标值 target,请你在该数组中找出和为目标值的那 两个 整数,并返回他们的数组下标
新手,所以使用最简单的方式遍历数组 方法:遍历数组 class Solution(object): def twoSum(self, nums, target): """ :type nums: List[int] :type target: int :rtype: List[int] """ ...
2020-04-25 16:27:29
513
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人