LeetCode Hot 100 · 简单 · 数组、哈希表
给定整数数组 nums 和目标值 target,在数组里找出和为 target 的两个数,返回它们的下标。
在 RagCodes 上用 Python / C++ / Java 在线编写并提交,核心代码模式与 ACM 模式均可评测。