var twoSum = function (numbers, target) { let [start, end] = [0, numbers.length - 1]; while (start < end) { const currentSum = numbers[start] + numbers[end]; const isTarget = currentSum === target; if (isTarget) { ...