🧩 Coding Interview Patterns · Free · Practice built in

15 Patterns That Solve
90% of Interview Problems

Stop grinding random problems. Learn the reusable patterns behind them — each with a template, a worked example, and instant practice on our built-in code judge.

Start Pattern 0 →
17
Pattern Lessons
24
Judge Problems
O(n)
Brute Force → Optimal
₹0
Forever Free

The Curriculum

In order — each pattern builds on the previous. Finish with the one-page cheat sheet.

00

How to Recognise Which Pattern a Problem Needs

The meta-skill of coding interviews: reading a problem statement and mapping it to the right algorithmic pattern — with a signal-to-pattern cheat table.

Start Here
01

Two Pointers — The Pattern That Kills O(n²)

The two-pointers technique: converging pointers on sorted arrays, reader/writer pointers for in-place edits, with templates and judge problems.

Easy
02

Sliding Window — Longest/Shortest Substring Problems

The sliding window pattern for substring and subarray problems: fixed and variable windows, the grow/shrink template, and judge practice.

Medium
03

HashMap Patterns — Seen-Before & Frequency Counting

The two hashmap patterns that solve half of all easy-medium interview problems: existence lookup and frequency counting, with templates.

Easy
04

Fast & Slow Pointers — Cycles and Middles

Floyd's tortoise-and-hare technique: detect linked list cycles, find the middle node, and why two speeds guarantee a meeting.

Medium
05

Merge Intervals — Calendars, Meetings & Ranges

The intervals pattern: sort by start then sweep, merging overlaps — with the overlap test and the classic meeting-rooms variants.

Medium
06

Binary Search as a Pattern — Search the Answer, Not the Array

Binary search beyond lookups: first/last occurrence, rotated arrays, and binary-searching the answer space — with the universal template.

Medium
07

Stack Patterns — Matching, Undo & Monotonic Stacks

The three stack patterns in interviews: bracket matching, processing with undo, and the monotonic stack for next-greater-element problems.

Medium
08

BFS — Level-by-Level and Shortest Paths

The breadth-first search pattern: level-order traversal with a queue, why BFS finds shortest paths, and the grid-BFS template.

Medium
09

DFS & Backtracking — Explore All Possibilities

Depth-first search and backtracking: flood fill, connected components, and the choose-explore-unchoose template for permutations and combinations.

Hard
10

Top-K Elements — Heaps Without Tears

The Top-K pattern: when to sort vs heap, the size-K heap trick, frequency + heap combos, and a JS min-heap you can write in interviews.

Medium
11

Prefix Sums & Kadane's Algorithm — Subarray Math

Prefix sums for instant range queries and Kadane's algorithm for maximum subarray — the two tools for subarray-sum problems.

Medium
12

In-Place Linked List Reversal — The Three-Pointer Dance

Master the in-place reversal pattern: reverse a full list, a sublist, and in K-groups — with the prev/cur/next choreography.

Medium
13

Dynamic Programming — The 1D Patterns That Cover Most Interviews

A practical DP framework: recognise it, define the state, write the recurrence — with climbing stairs, house robber and coin change solved.

Hard
14

Greedy Algorithms — When Local Best Is Global Best

The greedy pattern: making the locally optimal choice, when it works vs fails, and the classic interval-scheduling and jump-game examples.

Medium
15

Matrix Patterns — Traversals, Rotation & In-Place Tricks

Matrix interview patterns: spiral traversal, 90° rotation via transpose+reverse, and in-place marking tricks — with templates.

Medium
16

The Pattern Cheat Sheet — All 15 on One Page

One-page revision sheet: every coding interview pattern with its trigger signal, complexity, template one-liner and judge problem.

Review

How This Course Works

🎯

Pattern over problems

One pattern unlocks dozens of problems. 15 lessons beat 500 random grinds.

📋

Templates you keep

Every lesson gives a code template to adapt — the exact shape to write under pressure.

⚖️

Judge integration

Solve real problems with hidden tests on our DSA judge — right after each lesson.

🗣️

Interview phrasing

Each lesson includes the exact sentences that score points with interviewers.