剑指 Offer 57. 和为s的两个数字(双指针/哈希)c++
class Solution {public: vector<int> twoSum(vector<int>& nums, int target) { int i = 0,j = nums.size()-1; while(i < j){ int s = nums[i]+nums[j]; if(s<target){