示例2: 输入:nums = [3,2,4], target = 6 输出:[1,2] 示例3: 输入:nums = [3 ... 度遍历数组nums,i 为当前下标,每个值都判断map中是否存在target-nums[i] 的ke.
確定! 回上一頁