MediumTwo PointersNeetCode 150 · #11/150
Two Sum II
- 1Learn the pattern
Sorted input + pair/target question → two ends walking inward. Shrink from the side that can't work.
- 2Trace your version
Paste your solution into the workspace and watch every step execute.
Open workspace - 3