leetcode 给定一个值和一个数组,求数组中两元素和为所给值的元素
题目:Given an array of integers, return indices of the two numbers such that they add up to a specific target.给定一个整数数组,返回这两个数字的索引,使它们合计成一个特定的目标。示例:Given nums = [2, 7, 11, 15], target = 9,B
原创
2018-04-20 20:30:21 ·
1322 阅读 ·
0 评论