Review
Reading code once doesn't make it stick. Pulling it back out of your memory, a day later, then a few days later, then a week later, does. Each card here comes back just before you would forget it.
Due now
Nothing yet. Add your first cards below: they start coming back tomorrow.
Practise spotting patterns
Read a problem, name its pattern and its key idea. This is the skill that lets you start a problem you have never seen. 30 problems left to add.
Templates to learn
Each pattern page ends with its templates. Work through the four steps there and the template joins your reviews.
- Remember as you go · Hashing and counting
- Count, then answer · Hashing and counting
- Group by a key · Hashing and counting
- From both ends, towards the middle · Two pointers
- Read and write, same direction · Two pointers
- A window of fixed size · Sliding window
- Grow, then shrink until valid · Sliding window
- Find an item in a sorted list · Binary search
- Search on the answer · Binary search
- Matching pairs · Stack
- The next bigger item · Stack
Solutions to learn
Once you’ve solved a problem, open its “Learn by heart” tab to add its solution here.
Solve a problem first. See the problems.
Your reviews are saved in this browser only. Clearing site data clears them.