Skip to main content

See algorithms think.

Demystify complex data structures and tricky pointer logic. Watch variables mutate, recursion trees unfold, and memory state evolve in real time.

Topic:

Arrays & Hashing10 problems

3 live•7 upcoming
#1 · LC 217
W1Easy

Contains Duplicate

Set fills up, duplicate highlights

Coming SoonWeek 1 Drop
#2 · LC 242
W1Easy

Valid Anagram

Two count tables compared

Interactive LiveLaunch
#3 · LC 1
W1Easy

Two Sum

Hashmap grows, complement lookup

Interactive LiveLaunch
#4 · LC 169
W1Easy

Majority Element

Boyer-Moore candidate and count

Coming SoonWeek 1 Drop
#5 · LC 268
W1Easy

Missing Number

Sum / XOR running value

Interactive LiveLaunch
#6 · LC 191
W2Easy

Number of 1 Bits

Bits shifting right, count increments

Coming SoonWeek 2 Drop
#7 · LC 49
W2Medium

Group Anagrams

Sorted-key buckets forming

Coming SoonWeek 2 Drop
#8 · LC 347
W2Medium

Top K Frequent Elements

Count map, then bucket by frequency

Coming SoonWeek 2 Drop
#9 · LC 238
W2Medium

Product of Array Except Self

Prefix pass, then suffix pass

Coming SoonWeek 2 Drop
#10 · LC 128
W2Medium

Longest Consecutive Sequence

Set + only start counting at sequence start

Coming SoonWeek 2 Drop

Two Pointers7 problems

0 live•7 upcoming
#11 · LC 125
W3Easy

Valid Palindrome

Pointers converge, skip non-alphanumeric

Coming SoonWeek 3 Drop
#12 · LC 167
W3Medium

Two Sum II - Input Array Is Sorted

Sum compared to target, pointer moves

Coming SoonWeek 3 Drop
#13 · LC 283
W3Easy

Move Zeroes

Write pointer vs read pointer

Coming SoonWeek 3 Drop
#14 · LC 75
W3Medium

Sort Colors

Dutch flag: low / mid / high

Coming SoonWeek 3 Drop
#15 · LC 11
W3Medium

Container With Most Water

Area bars, move shorter side

Coming SoonWeek 3 Drop
#16 · LC 15
W4Medium

3Sum

Fixed i + inner 2 pointers, skip duplicates

Coming SoonWeek 4 Drop
#17 · LC 42
W4Hard

Trapping Rain Water

Water level fills per bar, left/right max

Coming SoonWeek 4 Drop

Sliding Window4 problems

0 live•4 upcoming
#18 · LC 121
W4Easy

Best Time to Buy and Sell Stock

Min price so far, best profit

Coming SoonWeek 4 Drop
#19 · LC 3
W4Medium

Longest Substring Without Repeating Characters

Window + char index map

Coming SoonWeek 4 Drop
#20 · LC 76
W4Hard

Minimum Window Substring

Need/have counters, window shrink

Coming SoonWeek 4 Drop
#21 · LC 239
W5Hard

Sliding Window Maximum

Monotonic deque contents each step

Coming SoonWeek 5 Drop

Prefix Sum & Kadane4 problems

0 live•4 upcoming
#22 · LC 53
W5Medium

Maximum Subarray

Kadane: extend vs restart

Coming SoonWeek 5 Drop
#23 · LC 152
W5Medium

Maximum Product Subarray

Track max and min product together

Coming SoonWeek 5 Drop
#24 · LC 560
W5Medium

Subarray Sum Equals K

Prefix sum map lookup

Coming SoonWeek 5 Drop
#25 · LC 31
W5Medium

Next Permutation

Find pivot, swap, reverse suffix

Coming SoonWeek 5 Drop

Matrix3 problems

0 live•3 upcoming
#26 · LC 73
W6Medium

Set Matrix Zeroes

First row/col as markers

Coming SoonWeek 6 Drop
#27 · LC 54
W6Medium

Spiral Matrix

Four boundaries closing in

Coming SoonWeek 6 Drop
#28 · LC 48
W6Medium

Rotate Image

Transpose, then reverse rows

Coming SoonWeek 6 Drop

Intervals & Greedy4 problems

1 live•3 upcoming
#29 · LC 56
W6Medium

Merge Intervals

Sorted bars merging on a timeline

Interactive LiveLaunch
#30 · LC 57
W6Medium

Insert Interval

Before / overlap / after zones

Coming SoonWeek 6 Drop
#31 · LC 435
W7Medium

Non-overlapping Intervals

Greedy: keep earliest end

Coming SoonWeek 7 Drop
#32 · LC 55
W7Medium

Jump Game

Farthest reachable index grows

Coming SoonWeek 7 Drop

Stack3 problems

1 live•2 upcoming
#33 · LC 20
W7Easy

Valid Parentheses

Push open, pop on match

Interactive LiveLaunch
#34 · LC 155
W7Medium

Min Stack

Value stack + min stack side by side

Coming SoonWeek 7 Drop
#35 · LC 739
W7Medium

Daily Temperatures

Monotonic stack, pops resolve answers

Coming SoonWeek 7 Drop

Binary Search7 problems

0 live•7 upcoming
#36 · LC 704
W8Easy

Binary Search

low, mid, high markers, discarded half greys out

Coming SoonWeek 8 Drop
#37 · LC 74
W8Medium

Search a 2D Matrix

Matrix treated as flattened array

Coming SoonWeek 8 Drop
#38 · LC 875
W8Medium

Koko Eating Bananas

Binary search on answer, hours calculated

Coming SoonWeek 8 Drop
#39 · LC 153
W8Medium

Find Minimum in Rotated Sorted Array

Which half is sorted

Coming SoonWeek 8 Drop
#40 · LC 33
W8Medium

Search in Rotated Sorted Array

Sorted half check, then target check

Coming SoonWeek 8 Drop
#41 · LC 981
W9Medium

Time Based Key-Value Store

Binary search inside timestamp list

Coming SoonWeek 9 Drop
#42 · LC 4
W9Hard

Median of Two Sorted Arrays

Partition lines across both arrays

Coming SoonWeek 9 Drop

Linked List10 problems

1 live•9 upcoming
#43 · LC 206
W9Easy

Reverse Linked List

prev / curr / next pointer rewiring

Interactive LiveLaunch
#44 · LC 21
W9Easy

Merge Two Sorted Lists

Dummy node, tail pointer

Coming SoonWeek 9 Drop
#45 · LC 141
W9Easy

Linked List Cycle

Slow and fast pointers meet

Coming SoonWeek 9 Drop
#46 · LC 234
W10Easy

Palindrome Linked List

Find middle, reverse half, compare

Coming SoonWeek 10 Drop
#47 · LC 19
W10Medium

Remove Nth Node From End of List

Gap of n between two pointers

Coming SoonWeek 10 Drop
#48 · LC 143
W10Medium

Reorder List

Split, reverse, interleave

Coming SoonWeek 10 Drop
#49 · LC 2
W10Medium

Add Two Numbers

Digit by digit with carry

Coming SoonWeek 10 Drop
#50 · LC 138
W10Medium

Copy List with Random Pointer

Old to new node map

Coming SoonWeek 10 Drop
#51 · LC 146
W11Medium

LRU Cache

HashMap + doubly linked list, move to front

Coming SoonWeek 11 Drop
#52 · LC 25
W11Hard

Reverse Nodes in k-Group

Group reversal and reconnection

Coming SoonWeek 11 Drop

Trees14 problems

1 live•13 upcoming
#53 · LC 104
W11Easy

Maximum Depth of Binary Tree

Recursion stack + returned depth

Interactive LiveLaunch
#54 · LC 226
W11Easy

Invert Binary Tree

Children swap at each node

Coming SoonWeek 11 Drop
#55 · LC 100
W11Easy

Same Tree

Two trees compared node by node

Coming SoonWeek 11 Drop
#56 · LC 572
W12Easy

Subtree of Another Tree

Match attempt at each node

Coming SoonWeek 12 Drop
#57 · LC 543
W12Easy

Diameter of Binary Tree

Height returned, best path updated

Coming SoonWeek 12 Drop
#58 · LC 102
W12Medium

Binary Tree Level Order Traversal

Queue contents per level

Coming SoonWeek 12 Drop
#59 · LC 199
W12Medium

Binary Tree Right Side View

Last node of each level highlighted

Coming SoonWeek 12 Drop
#60 · LC 98
W12Medium

Validate Binary Search Tree

Low/high bounds passed down

Coming SoonWeek 12 Drop
#61 · LC 230
W13Medium

Kth Smallest Element in a BST

Inorder traversal counter

Coming SoonWeek 13 Drop
#62 · LC 235
W13Medium

Lowest Common Ancestor of a Binary Search Tree

Walk down by comparing values

Coming SoonWeek 13 Drop
#63 · LC 236
W13Medium

Lowest Common Ancestor of a Binary Tree

Return values bubbling up

Coming SoonWeek 13 Drop
#64 · LC 105
W13Medium

Construct Binary Tree from Preorder and Inorder Traversal

Root pick, array split

Coming SoonWeek 13 Drop
#65 · LC 124
W13Hard

Binary Tree Maximum Path Sum

Gain returned vs global best

Coming SoonWeek 13 Drop
#66 · LC 297
W14Hard

Serialize and Deserialize Binary Tree

Preorder string with null markers

Coming SoonWeek 14 Drop

Heap / Priority Queue5 problems

1 live•4 upcoming
#67 · LC 215
W14Medium

Kth Largest Element in an Array

Min-heap of size k

Interactive LiveLaunch
#68 · LC 973
W14Medium

K Closest Points to Origin

Distances in a heap

Coming SoonWeek 14 Drop
#69 · LC 621
W14Medium

Task Scheduler

Max-heap + cooldown queue timeline

Coming SoonWeek 14 Drop
#70 · LC 295
W14Hard

Find Median from Data Stream

Two heaps balancing

Coming SoonWeek 14 Drop
#71 · LC 23
W15Hard

Merge k Sorted Lists

Heap holds one node per list

Coming SoonWeek 15 Drop

Backtracking6 problems

0 live•6 upcoming
#72 · LC 78
W15Medium

Subsets

Include / exclude decision tree

Coming SoonWeek 15 Drop
#73 · LC 46
W15Medium

Permutations

Used array + path building

Coming SoonWeek 15 Drop
#74 · LC 39
W15Medium

Combination Sum

Remaining target shrinking

Coming SoonWeek 15 Drop
#75 · LC 17
W15Medium

Letter Combinations of a Phone Number

Digit to letters tree

Coming SoonWeek 15 Drop
#76 · LC 22
W16Medium

Generate Parentheses

Open / close counts valid branches

Coming SoonWeek 16 Drop
#77 · LC 79
W16Medium

Word Search

Grid DFS with visited cells and undo

Coming SoonWeek 16 Drop

Trie3 problems

0 live•3 upcoming
#78 · LC 208
W16Medium

Implement Trie (Prefix Tree)

Nodes created per character

Coming SoonWeek 16 Drop
#79 · LC 211
W16Medium

Design Add and Search Words Data Structure

Wildcard branching

Coming SoonWeek 16 Drop
#80 · LC 212
W16Hard

Word Search II

Trie guides grid DFS

Coming SoonWeek 16 Drop

Graphs8 problems

3 live•5 upcoming
#81 · LC 200
W17Medium

Number of Islands

Flood fill colors each island

Interactive LiveLaunch
#82 · LC 994
W17Medium

Rotting Oranges

Multi-source BFS minute by minute

Coming SoonWeek 17 Drop
#83 · LC 133
W17Medium

Clone Graph

Old to new node map

Coming SoonWeek 17 Drop
#84 · LC 417
W17Medium

Pacific Atlantic Water Flow

Two reverse DFS and overlap

Interactive LiveLaunch
#85 · LC 207
W17Medium

Course Schedule

Cycle detection / in-degree

Interactive LiveLaunch
#86 · LC 210
W18Medium

Course Schedule II

Topological order building

Coming SoonWeek 18 Drop
#87 · LC 127
W18Hard

Word Ladder

BFS levels of word transformations

Coming SoonWeek 18 Drop
#88 · LC 743
W18Medium

Network Delay Time

Dijkstra distances relaxing

Coming SoonWeek 18 Drop

Dynamic Programming12 problems

1 live•11 upcoming
#89 · LC 70
W18Easy

Climbing Stairs

Fibonacci table / memo hits

Interactive LiveLaunch
#90 · LC 198
W18Medium

House Robber

Take / skip per index

Coming SoonWeek 18 Drop
#91 · LC 213
W19Medium

House Robber II

Two runs: exclude first / last

Coming SoonWeek 19 Drop
#92 · LC 322
W19Medium

Coin Change

1D dp amount table fills

Coming SoonWeek 19 Drop
#93 · LC 300
W19Medium

Longest Increasing Subsequence

dp[i] built from earlier indexes

Coming SoonWeek 19 Drop
#94 · LC 139
W19Medium

Word Break

dp over prefixes, dictionary match

Coming SoonWeek 19 Drop
#95 · LC 91
W19Medium

Decode Ways

One-digit / two-digit choices

Coming SoonWeek 19 Drop
#96 · LC 62
W20Medium

Unique Paths

2D grid sum from top and left

Coming SoonWeek 20 Drop
#97 · LC 1143
W20Medium

Longest Common Subsequence

2D table, match or max of neighbours

Coming SoonWeek 20 Drop
#98 · LC 72
W20Hard

Edit Distance

2D table: insert / delete / replace

Coming SoonWeek 20 Drop
#99 · LC 416
W20Medium

Partition Equal Subset Sum

Subset-sum boolean table

Coming SoonWeek 20 Drop
#100 · LC 5
W20Medium

Longest Palindromic Substring

Expand around centre / dp grid

Coming SoonWeek 20 Drop