FREE PREP PATH · 1 OF 2
From student to SDE 2: the interview prep path
The 231-problem DSA sheet in the order the patterns build on each other, then the system design, low level design and behavioral basics that SDE 1 and SDE 2 loops ask. Finish it before you start applying.
For Students, new grads, SDE 1 and SDE 2 (0 to 5 years)
- DSA problems
- 231
- System design
- 23
- Low level design
- 30
- Behavioral themes
- 6
- At 2 hours a day
- ~18 weeks
- Optional: the 30 most asked
- +30
- 1DSA foundations0/113
- 2Trees, graphs and heaps0/84
- 3Dynamic programming0/34
- 4Bonus: the 30 most asked0/30
- 5System design basics0/23
- 6Low level design basics0/30
- 7Behavioral basics0/6
Progress is saved in this browser. Create a free account to keep it on every device.
DSA foundations
Arrays, two pointers, sliding windows, stacks, linked lists, binary search and recursion. Every later topic leans on these.
113 items · about 113 hours
Arrays & Hashing28
- Two Sum Learn the pattern →
- Two Sum Easy
- 3Sum Medium
- Moore's Voting Algorithm Learn the pattern →
- Majority Element Easy
- Majority Element II Medium
- Kadane's Algorithm Learn the pattern →
- Kadane's Algorithm - Simple Medium
- Find minimum subarray sum Medium
- Kadane's Algo - Circular Array - No Extra Space Hard
- Double Reversal Trick Learn the pattern →
- Rotate Array Medium
- Reverse Words in a String Medium
- Two Pointer Learn the pattern →
- Two Sum II - Input Array Is Sorted Medium
- Valid Triangle Number Medium
- Right to Left Traversal Learn the pattern →
- Array Leaders Easy
- Product of Array Except Self Medium
- In-place Transformations Learn the pattern →
- Set Matrix Zeroes Medium
- Find All Duplicates in an Array Medium
- Merge Sort Like Approach Learn the pattern →
- Count Inversions Medium
- Arranging the array Medium
- Dutch National Flag Learn the pattern →
- Sort Colors Medium
- Prefix Sum Strategy Learn the pattern →
- Subarray Sum Equals K Medium
- Subarray with given XOR Medium
- Range Sum Query - Immutable Easy
- Sliding Window · Fixed Learn the pattern →
- Maximum Average Subarray I Easy
- K Radius Subarray Averages Medium
- Maximum Number of Vowels in a Substring of Given Length Medium
- Sliding Window · Variable Learn the pattern →
- Minimum Size Subarray Sum Medium
- Count of Subarrays with Product Less Than K Medium
- Sliding Window · Hash Map Learn the pattern →
- Number of Substrings Containing All Three Characters Medium
- Minimum Window Substring Hard
Stack7
- Stack Basics Learn the pattern →
- Valid Parentheses Easy
- Baseball Game Easy
- Asteroid Collision Medium
- Min Stack Medium
- Remove All Adjacent Duplicates In String Easy
- Evaluate Reverse Polish Notation Medium
- Basic Calculator Hard
Monotonic Stack4
- Monotonic Stack Learn the pattern →
- Next Greater Element I Easy
- Daily Temperatures Medium
- Next Greater Element II Medium
- Largest Rectangle in Histogram Hard
Linked List20
- Dummy Node Pattern Learn the pattern →
- Remove Linked List Elements Easy
- Delete Nodes From Linked List Present in Array Medium
- Merge Two Sorted Lists Easy
- Rotate List Medium
- Swap Nodes in Pairs Medium
- Swapping Nodes in a Linked List Medium
- Remove Duplicates from Sorted List II Medium
- Slow Fast Pointers Learn the pattern →
- Middle of the Linked List Easy
- Linked List Cycle Easy
- Linked List Cycle II Medium
- Front Back Pointer Learn the pattern →
- Remove Nth Node From End of List Medium
- Front Middle Back Pointer Learn the pattern →
- Reverse Linked List Easy
- Reverse Linked List II Medium
- Reverse Nodes in k-Group Hard
- Palindrome Linked List Easy
- Miscellaneous Learn the pattern →
- Delete Node in a Linked List Medium
- Copy List with Random Pointer Medium
- Intersection of Two Linked Lists Easy
- Partition List Medium
- Sort List Medium
Binary Search25
- Basics Learn the pattern →
- Fundamentals Easy
- Binary Search Easy
- Bisect Learn the pattern →
- bisect_left, bisect_right Easy
- Search Insert Position Easy
- Floor in a Sorted Array Easy
- Ceil in a Sorted Array Easy
- Find First and Last Position of Element in Sorted Array Medium
- Number of occurrence Easy
- Unique 1-D Binary Search Learn the pattern →
- First Bad Version Easy
- Single Element in a Sorted Array Medium
- Find Peak Element Medium
- Rotated Array Learn the pattern →
- Find How Many Times Array is Rotated Easy
- Find Minimum in Rotated Sorted Array Medium
- Find Minimum in Rotated Sorted Array II Hard
- Search in Rotated Sorted Array Medium
- Search in Rotated Sorted Array II Medium
- 2D Binary Search + Step Search Learn the pattern →
- Row with max 1s Medium
- Search a 2D Matrix Medium
- Search a 2D Matrix II (Young Tableau) Medium
- Search on Answer Range Learn the pattern →
- Pow(x, n) (Binary Exponentiation) Medium
- Find Nth root of M Easy
- Sqrt(x) Easy
- Find position of an element in a sorted array of infinite numbers (Galloping Search) Medium
- Binary Search on Answer Space Learn the pattern →
- Koko Eating Bananas Medium
- Minimum Number of Days to Make m Bouquets Medium
Recursion & Backtracking17
- Basic Recursion Learn the pattern →
- Factorial of a number Easy
- Fibonacci Number Easy
- Binary Tree Inorder Traversal (Recursive) Easy
- Basic Backtracking Template Medium
- Binary Tree Paths Easy
- 2D Matrix Learn the pattern →
- N-Queens Hard
- Pick / Not-Pick Learn the pattern →
- Generate all binary strings without consecutive 1's Medium
- Subsets (2 choices per element) Medium
- Subsets II Medium
- Combinations Medium
- Combination Sum (repeating elements) Medium
- Combination Sum II Medium
- Combination Sum III Medium
- Permutations Learn the pattern →
- Permutations - Swap Trick Medium
- Permutations Medium
- Permutations II Medium
- 2D Matrix Backtracking Learn the pattern →
- Word Search Medium
Bit Manipulation12
- Basics Learn the pattern →
- Decimal to binary Easy
- Convert Binary Number in a Linked List to Integer Easy
- K-th Bit is Set or Not Easy
- Odd or Even Easy
- Tricks to remember Learn the pattern →
- Number of 1 Bits Easy
- Set the rightmost unset bit Easy
- XOR of 1 to n Numbers Easy
- XOR Basics Learn the pattern →
- Swap two numbers Easy
- Hamming Distance Easy
- Missing / Repeated Numbers Learn the pattern →
- Single Number Easy
- Missing Number Easy
- Two numbers with odd occurrences Medium
Trees, graphs and heaps
Traversals, BSTs, heaps, tries, intervals and graph search: the bulk of medium interview questions.
84 items · about 84 hours
Trees & BST43
- Recursion Learn the pattern →
- Binary Tree Inorder Traversal (Recursive) Easy
- Binary Tree Preorder Traversal (Recursive) Easy
- Binary Tree Postorder Traversal (Recursive) Easy
- Binary Tree Inorder Traversal (Iterative) Easy
- Binary Tree Preorder Traversal (Iterative) Easy
- Binary Tree Postorder Traversal (Iterative) Easy
- Maximum Depth of Binary Tree Easy
- Same Tree Easy
- Symmetric Tree Easy
- Invert Binary Tree Easy
- Backtracking Learn the pattern →
- Root to Leaf Paths Medium
- Traversals Learn the pattern →
- Binary Tree Level Order Traversal Medium
- Binary Tree Zigzag Level Order Traversal Medium
- Binary Tree Level Order Traversal II Medium
- Views Learn the pattern →
- Top View of Binary Tree Medium
- Bottom View of Binary Tree Medium
- Left View of Binary Tree Easy
- Binary Tree Right Side View Medium
- BST Basics Learn the pattern →
- Search in a Binary Search Tree Easy
- Minimum element in BST Easy
- Insert into a Binary Search Tree Medium
- Postorder + Multiple Return Values Learn the pattern →
- Balanced Binary Tree Easy
- Validate Binary Search Tree Medium
- Children Sum in a Binary Tree Easy
- Largest BST Medium
- LCA Learn the pattern →
- Lowest Common Ancestor of a Binary Tree Medium
- Lowest Common Ancestor of a Binary Search Tree Medium
- Child + Ancestor Handling Learn the pattern →
- Amount of Time for Binary Tree to Be Infected Medium
- Burning Tree Hard
- All Nodes Distance K in Binary Tree Medium
- Reverse Inorder Traversal Learn the pattern →
- Kth Smallest Element in a BST Medium
- Kth Largest Element in BST Easy
- Tree Serialization / Deserialization Learn the pattern →
- Construct Binary Tree from Preorder and Inorder Traversal Medium
- Construct Binary Tree from Inorder and Postorder Traversal Medium
- Construct Binary Search Tree from Preorder Traversal Medium
- Serialize and Deserialize Binary Tree Hard
- Tree to Lists and vice-versa Learn the pattern →
- Binary Tree to DLL Hard
- Flatten Binary Tree to Linked List Medium
- Miscellaneous BST Questions Learn the pattern →
- Inorder Successor in BST Medium
- Inorder predecessor Medium
- Floor in BST Easy
- Ceil in BST Easy
- Two Sum IV - Input is a BST Easy
Heaps6
- Top K / Kth Largest / Smallest Learn the pattern →
- Kth Largest Element in an Array Medium
- Kth Largest Element in a Stream Easy
- Composite comparator Learn the pattern →
- Top K Frequent Elements Medium
- Merge K Sorted Learn the pattern →
- Merge k Sorted Lists Hard
- Merge k Sorted Arrays Medium
- Advanced Learn the pattern →
- Find K Pairs with Smallest Sums Medium
Intervals9
- Basics Learn the pattern →
- Detect overlap unsorted Easy
- Detect overlap sorted intervals Easy
- Interval List Intersections Medium
- Meeting Rooms Easy
- Merge two unsorted intervals Easy
- Merge two sorted intervals Easy
- Merge Intervals Medium
- Line Sweep Learn the pattern →
- Meeting Rooms II Medium
- Car Pooling Medium
Tries2
- Basics Learn the pattern →
- Implement Trie (Prefix Tree) Medium
- Implement Trie ll Medium
Graphs18
- BFS / DFS Basics Learn the pattern →
- BFS - Normal + Level by Level Easy
- DFS - Recursive + Iterative Easy
- Matrix Graphs Learn the pattern →
- Flood Fill Easy
- Connected Components Learn the pattern →
- Number of Provinces Medium
- Number of Islands Medium
- BFS for shortest path Learn the pattern →
- Shortest Path in Binary Matrix Medium
- DFS - Complement Trick Learn the pattern →
- Surrounded Regions Medium
- Multi source BFS Learn the pattern →
- Rotting Oranges Medium
- 01 Matrix Medium
- Cycle Detection Learn the pattern →
- Undirected Graph Cycle Medium
- Directed Graph Cycle Medium
- Is Graph Bipartite? Medium
- Topological Sort Learn the pattern →
- Topological sort using BFS Medium
- Course Schedule Medium
- Course Schedule II Medium
- Alien Dictionary Hard
- Dijkstra Learn the pattern →
- Network Delay Time Medium
- Find the City With the Smallest Number of Neighbors at a Threshold Distance Medium
Design Data Structures6
- Pre-processing + tradeoffs Learn the pattern →
- Design Neighbor Sum Service Easy
- Linked Lists Learn the pattern →
- Design Linked List Medium
- Design Front Middle Back Queue Medium
- Stack Learn the pattern →
- Min Stack Medium
- Design a Stack With Increment Operation Medium
- Maximum Frequency Stack Hard
Dynamic programming
From climbing stairs to edit distance: states, choices and tables, one family at a time.
34 items · about 34 hours
Dynamic Programming34
- 1D DP Learn the pattern →
- Fibonacci Number Easy
- Climbing Stairs Easy
- Min Cost Climbing Stairs (2 jumps) Easy
- Minimal Cost (k jumps) Medium
- Decode Ways Medium
- Word Break Medium
- Alternate Selection / Pick / Not pick Learn the pattern →
- House Robber Medium
- House Robber II Medium
- 2D DP Learn the pattern →
- Minimum Path Sum Medium
- Unique Paths Medium
- Unique Paths II Medium
- 2D DP - max/min of last row Learn the pattern →
- Minimum Falling Path Sum Medium
- Triangle Medium
- Geek's Training Medium
- Squares Learn the pattern →
- Maximal Square Medium
- Count Square Submatrices with All Ones Medium
- Largest 1-Bordered Square Medium
- State Machine DP - Stock Problems Learn the pattern →
- Best Time to Buy and Sell Stock Easy
- Best Time to Buy and Sell Stock II Medium
- Best Time to Buy and Sell Stock with Transaction Fee Medium
- Best Time to Buy and Sell Stock with Cooldown Medium
- Best Time to Buy and Sell Stock III Hard
- Knapsack Learn the pattern →
- 0 - 1 Knapsack Problem Medium
- Fractional Knapsack Medium
- Knapsack with Duplicate Items Medium
- Coin Change Medium
- Coin Change II Medium
- Strings Learn the pattern →
- Edit Distance Medium
- Longest Common Subsequence Medium
- Longest Palindromic Subsequence Medium
- Minimum Insertion Steps to Make a String Palindrome Hard
- Longest Common Substring Medium
- Interval DP Learn the pattern →
- Matrix Chain Multiplication Hard
- Burst Balloons Hard
Bonus: the 30 most askedOptional
Easy and medium questions that companies ask most often and the core sheet does not have. Do these if you have a week left.
30 items · about 30 hours
Most asked at companies30
- LRU Cache Medium · 144 companies
- Longest Substring Without Repeating Characters Medium · 118 companies
- Group Anagrams Medium · 86 companies
- Longest Palindromic Substring Medium · 72 companies
- Container With Most Water Medium · 63 companies
- Valid Palindrome Easy · 57 companies
- Spiral Matrix Medium · 56 companies
- Insert Delete GetRandom O(1) Medium · 54 companies
- Move Zeroes Easy · 46 companies
- Valid Anagram Easy · 46 companies
- Longest Common Prefix Easy · 45 companies
- Merge Sorted Array Easy · 44 companies
- Rotate Image Medium · 42 companies
- Reverse String Easy · 41 companies
- String Compression Medium · 38 companies
- Longest Consecutive Sequence Medium · 38 companies
- Add Two Numbers Medium · 37 companies
- Decode String Medium · 35 companies
- Next Permutation Medium · 35 companies
- Longest Increasing Subsequence Medium · 33 companies
- Jump Game Medium · 32 companies
- Implement Queue using Stacks Easy · 32 companies
- Generate Parentheses Medium · 32 companies
- First Unique Character in a String Easy · 32 companies
- Palindrome Number Easy · 31 companies
- Sort an Array Medium · 31 companies
- Time Based Key-Value Store Medium · 29 companies
- Design HashMap Easy · 29 companies
- Jump Game II Medium · 29 companies
- Letter Combinations of a Phone Number Medium · 29 companies
System design basics
What an SDE 2 design round expects: the core building blocks, a method to answer, and six classic problems. SDE 1 interviews rarely ask this, so start here only after the DSA stages.
23 items · about 9 hours
Concepts16
- The web, end to end Concept 1
- DNS Concept 2
- Load balancers Concept 5
- API design Concept 8
- Real-time Concept 9
- Caching Concept 11
- CDN Concept 12
- Monolith vs microservices Concept 13
- SQL vs NoSQL Concept 16
- Indexes Concept 17
- Replication Concept 20
- Sharding Concept 21
- CAP theorem Concept 25
- Message queues Concept 28
- Rate limiting Concept 30
- Estimation Concept 36
How to answer1
Design problems6
- URL shortener Design problem 1
- Pastebin Design problem 2
- Rate limiter Design problem 3
- WhatsApp Design problem 5
- News Feed Design problem 11
- Notification system Design problem 37
Low level design basics
OOP, SOLID and the handful of patterns that show up in machine coding rounds, then eight problems with full Java code.
30 items · about 15 hours
OOP and SOLID12
- Classes and objects Lesson 1
- Encapsulation Lesson 2
- Abstraction Lesson 3
- Inheritance Lesson 4
- Polymorphism Lesson 5
- Interface vs abstract Lesson 6
- Composition > inheritance Lesson 7
- Single responsibility Lesson 8
- Open/closed principle Lesson 9
- Liskov substitution Lesson 10
- Interface segregation Lesson 11
- Dependency inversion Lesson 12
Patterns you will use10
- Class diagrams Lesson 17
- Singleton Lesson 22
- Factory method Lesson 23
- Builder Lesson 25
- Strategy pattern Lesson 34
- Observer pattern Lesson 35
- State pattern Lesson 36
- Decorator pattern Lesson 30
- How to answer LLD Lesson 47
- Common LLD mistakes Lesson 48
Machine coding problems8
- Parking lot Problem 1
- Tic-tac-toe Problem 26
- Snakes and ladders Problem 11
- Vending machine Problem 2
- Logger with sinks Problem 14
- Library management Problem 15
- Splitwise Problem 4
- Elevator system Problem 3
Behavioral basics
Six stories cover most early-career behavioral rounds. Write one STAR story for each, using the sample answers as a guide.
6 items · about 2 hours
Write one story for each6
- Ownership Sample answer
- Collaboration and inclusion Sample answer
- Failure and learning Sample answer
- Disagreement and candor Sample answer
- Curiosity and growth Sample answer
- Customer focus Sample answer
Questions about this path
Who is the Student to SDE 2 path for?
Students, new grads, SDE 1 and SDE 2 (0 to 5 years). Clear the coding rounds at most product companies and hold your own in a first design round.
How long does it take?
About 18 weeks at two hours a day for the required stages (about 257 hours), counting each DSA problem with its two revisions. Optional stages are extra.
Is it really free?
Yes. Every problem, walkthrough, lesson and sample answer on the path is free. An account is only needed to keep your progress across devices.
What if I have already solved some of these problems?
Anything you log anywhere on AlgoRung counts here: a problem solved from the DSA sheet or a walkthrough watched in System Design is already ticked on the path.
Do SDE 1 interviews ask system design?
Rarely. Most SDE 1 loops are coding plus behavioral, sometimes with a machine coding round. Finish the DSA stages first; the system design basics matter most once you aim for SDE 2.
When should I start applying?
When the required stages show green. Then pick your companies on the Interviews page: it shows the questions each company reports, and a problem you solved here counts there too.
Both prep paths · DSA sheet · System Design · Low Level Design · Behavioral questions · Updated 2026