167. Two Sum II Input Array Is Sorted

Medium

Two Pointers

Optimal Complexity

Time

O(n)

Space

O(1)