Two Sum II Input Array Is Sorted

Medium Two Pointers
Given a sorted array and a target, find the two numbers that add up to it and return their 1-based positions.

Full statement, examples and constraints: see the original problem link below.

A full in-site walkthrough for this problem is coming soon.

View solution & discussion on the original problem ↗
Write your solution in the editor, then hit “Mark solved”. In-browser run & auto-check is coming soon.