๐Ÿงฉ 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.