class Solution {
public:
vector<int> twoSum(vector<int>& numbers, int target) {
int nums_len = numbers.size();
vector<int> ret (2);
int lelf = 0;int right = nums_len - 1;
while (numbers[lelf] + numbers[right] - target){
while (numbers[lelf] + numbers[right] - target < 0) lelf += 1;
while (numbers[lelf] + numbers[right] - target > 0) right -= 1;
}
ret[0] = lelf + 1; ret[1] = right + 1;
return numbers[lelf] + numbers[right] - target ? vector<int> (0): ret;
}
};