摘要: 题目地址:https://leetcode-cn.com/problems/two-sum/ 给定一个整数数组 nums 和一个整数目标值 target,请你在该数组中找出 和为目标值 的那 两个 整数,并返回它们的数组下标。 思路:用map先存一下,然后去找。 难点:map的用法。 var arr 阅读全文
posted @ 2021-05-08 11:41 qingshanyici 阅读(36) 评论(0) 推荐(0) 编辑