1class Solution {2public:3vector<int> twoSum(vector<int> &numbers, int target) {4int low = 0;5int high = numbers.size() - 1;6vector<int> ans;7while (low <= high) {8int sum = numbers[low] + numbers[high];910if (sum == target)11return vector<int>{low + 1, high + 1};1213else if (sum > target)14high = high - 1;1516else17low = low + 1;18}19return vector<int>{};20;21}22};