给定整数集合和目标值找出集合中和为目标值的元素
liuxuecheng 4年前 (2018-05-05) 2728浏览 0评论
1.给定的数组没有排序 给定一个整型数组array和一个整数target,在数组中找出两个整数相加之和为target,返回这两个整数的下标。 Given nums = [2, 7, 11, 15], target = 9, Because ...
liuxuecheng 4年前 (2018-05-05) 2728浏览 0评论
1.给定的数组没有排序 给定一个整型数组array和一个整数target,在数组中找出两个整数相加之和为target,返回这两个整数的下标。 Given nums = [2, 7, 11, 15], target = 9, Because ...