Two Sum II - Input Array Is Sorted Using Two Pointers
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) {
...
suryasun.hashnode.dev1 min read