leetcode-1-twosum

class Solution {public: vectortwoSum(vector& nums, int target) { vectorans; unordered_mapm; //建立索引表 for(int i=0;i ret(2);

        for(int i=0;i

你可能感兴趣的:(leetcode-1-twosum)