Recognize the pattern · Apply the template · Solve in minutes

Learn DSA by Pattern

Stop memorising solutions. Learn to recognise which pattern applies, then apply the template. 13 patterns · 107+ curated problems · Java code throughout.

13Patterns
107+Problems
5Hard Patterns
#01
🪟

Sliding Window

Process a window of elements that slides across an array or string.

0/10 solved0%
medium
#02
👆👆

Two Pointers

Use two indices to scan from both ends or at different speeds.

0/7 solved0%
easy

11 patterns locked — unlock with Pro

Full access to all 13 patterns, Java templates, and 107+ practice problems.

How to use this section

Pick a pattern, read the description and when-to-use signals, study the Java template, then solve problems in order of difficulty. Once you can write the template from memory you are ready for any interview question using that pattern.