MARCHYou solve 3Sum.
JUNEThe interviewer asks Container With Most Water. It looks like a problem you've never seen.
WHYBoth are solved with two pointers moving toward each other. What you kept from March was the 3Sum code, and that code doesn't help with a different problem.
Learn the pattern, and new problems start to look familiar.
Each pattern page explains the idea and lists the phrases that point to it. Its problems go from easy to hard, and hints open one at a time.
Solved problems come back for review. Analytics shows which patterns you keep forgetting and which ones you mix up.
No account. Your progress and notes stay in your browser.