I remember the first time I encountered the two-pointer technique in my Data Structures class. My professor threw this problem at us: "Find two numbers in a sorted array that add up to a target." My immediate thought? "Easy! Just use two loops and ch...

Markdown supported · ⌘↵ to post
No responses yet.