LeetCode 167: Two Sum Ii Input Array Is Sorted — Step-by-Step Visual Trace
Medium — Two Pointers | Array | Binary Search
The Problem
Find two numbers in a sorted array that add up to a specific target value, returning their 1-indexed positions.
Approach
Use two pointers starting from opposite ends of the sorted array. Move ...
blog.tracelit.dev1 min read