0 day streak

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
Your progress 0 of 290 done
  1. 1DSA foundations0/113
  2. 2Trees, graphs and heaps0/84
  3. 3Dynamic programming0/34
  4. 4Bonus: the 30 most asked0/30
  5. 5System design basics0/23
  6. 6Low level design basics0/30
  7. 7Behavioral basics0/6

Progress is saved in this browser. Create a free account to keep it on every device.

1

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
  1. Two Sum Learn the pattern →
  2. Two Sum Easy
  3. 3Sum Medium
  4. Moore's Voting Algorithm Learn the pattern →
  5. Majority Element Easy
  6. Majority Element II Medium
  7. Kadane's Algorithm Learn the pattern →
  8. Kadane's Algorithm - Simple Medium
  9. Find minimum subarray sum Medium
  10. Kadane's Algo - Circular Array - No Extra Space Hard
  11. Double Reversal Trick Learn the pattern →
  12. Rotate Array Medium
  13. Reverse Words in a String Medium
  14. Two Pointer Learn the pattern →
  15. Two Sum II - Input Array Is Sorted Medium
  16. Valid Triangle Number Medium
  17. Right to Left Traversal Learn the pattern →
  18. Array Leaders Easy
  19. Product of Array Except Self Medium
  20. In-place Transformations Learn the pattern →
  21. Set Matrix Zeroes Medium
  22. Find All Duplicates in an Array Medium
  23. Merge Sort Like Approach Learn the pattern →
  24. Count Inversions Medium
  25. Arranging the array Medium
  26. Dutch National Flag Learn the pattern →
  27. Sort Colors Medium
  28. Prefix Sum Strategy Learn the pattern →
  29. Subarray Sum Equals K Medium
  30. Subarray with given XOR Medium
  31. Range Sum Query - Immutable Easy
  32. Sliding Window · Fixed Learn the pattern →
  33. Maximum Average Subarray I Easy
  34. K Radius Subarray Averages Medium
  35. Maximum Number of Vowels in a Substring of Given Length Medium
  36. Sliding Window · Variable Learn the pattern →
  37. Minimum Size Subarray Sum Medium
  38. Count of Subarrays with Product Less Than K Medium
  39. Sliding Window · Hash Map Learn the pattern →
  40. Number of Substrings Containing All Three Characters Medium
  41. Minimum Window Substring Hard
Stack7
  1. Stack Basics Learn the pattern →
  2. Valid Parentheses Easy
  3. Baseball Game Easy
  4. Asteroid Collision Medium
  5. Min Stack Medium
  6. Remove All Adjacent Duplicates In String Easy
  7. Evaluate Reverse Polish Notation Medium
  8. Basic Calculator Hard
Monotonic Stack4
  1. Monotonic Stack Learn the pattern →
  2. Next Greater Element I Easy
  3. Daily Temperatures Medium
  4. Next Greater Element II Medium
  5. Largest Rectangle in Histogram Hard
Linked List20
  1. Dummy Node Pattern Learn the pattern →
  2. Remove Linked List Elements Easy
  3. Delete Nodes From Linked List Present in Array Medium
  4. Merge Two Sorted Lists Easy
  5. Rotate List Medium
  6. Swap Nodes in Pairs Medium
  7. Swapping Nodes in a Linked List Medium
  8. Remove Duplicates from Sorted List II Medium
  9. Slow Fast Pointers Learn the pattern →
  10. Middle of the Linked List Easy
  11. Linked List Cycle Easy
  12. Linked List Cycle II Medium
  13. Front Back Pointer Learn the pattern →
  14. Remove Nth Node From End of List Medium
  15. Front Middle Back Pointer Learn the pattern →
  16. Reverse Linked List Easy
  17. Reverse Linked List II Medium
  18. Reverse Nodes in k-Group Hard
  19. Palindrome Linked List Easy
  20. Miscellaneous Learn the pattern →
  21. Delete Node in a Linked List Medium
  22. Copy List with Random Pointer Medium
  23. Intersection of Two Linked Lists Easy
  24. Partition List Medium
  25. Sort List Medium
Binary Search25
  1. Basics Learn the pattern →
  2. Fundamentals Easy
  3. Binary Search Easy
  4. Bisect Learn the pattern →
  5. bisect_left, bisect_right Easy
  6. Search Insert Position Easy
  7. Floor in a Sorted Array Easy
  8. Ceil in a Sorted Array Easy
  9. Find First and Last Position of Element in Sorted Array Medium
  10. Number of occurrence Easy
  11. Unique 1-D Binary Search Learn the pattern →
  12. First Bad Version Easy
  13. Single Element in a Sorted Array Medium
  14. Find Peak Element Medium
  15. Rotated Array Learn the pattern →
  16. Find How Many Times Array is Rotated Easy
  17. Find Minimum in Rotated Sorted Array Medium
  18. Find Minimum in Rotated Sorted Array II Hard
  19. Search in Rotated Sorted Array Medium
  20. Search in Rotated Sorted Array II Medium
  21. 2D Binary Search + Step Search Learn the pattern →
  22. Row with max 1s Medium
  23. Search a 2D Matrix Medium
  24. Search a 2D Matrix II (Young Tableau) Medium
  25. Search on Answer Range Learn the pattern →
  26. Pow(x, n) (Binary Exponentiation) Medium
  27. Find Nth root of M Easy
  28. Sqrt(x) Easy
  29. Find position of an element in a sorted array of infinite numbers (Galloping Search) Medium
  30. Binary Search on Answer Space Learn the pattern →
  31. Koko Eating Bananas Medium
  32. Minimum Number of Days to Make m Bouquets Medium
Recursion & Backtracking17
  1. Basic Recursion Learn the pattern →
  2. Factorial of a number Easy
  3. Fibonacci Number Easy
  4. Binary Tree Inorder Traversal (Recursive) Easy
  5. Basic Backtracking Template Medium
  6. Binary Tree Paths Easy
  7. 2D Matrix Learn the pattern →
  8. N-Queens Hard
  9. Pick / Not-Pick Learn the pattern →
  10. Generate all binary strings without consecutive 1's Medium
  11. Subsets (2 choices per element) Medium
  12. Subsets II Medium
  13. Combinations Medium
  14. Combination Sum (repeating elements) Medium
  15. Combination Sum II Medium
  16. Combination Sum III Medium
  17. Permutations Learn the pattern →
  18. Permutations - Swap Trick Medium
  19. Permutations Medium
  20. Permutations II Medium
  21. 2D Matrix Backtracking Learn the pattern →
  22. Word Search Medium
Bit Manipulation12
  1. Basics Learn the pattern →
  2. Decimal to binary Easy
  3. Convert Binary Number in a Linked List to Integer Easy
  4. K-th Bit is Set or Not Easy
  5. Odd or Even Easy
  6. Tricks to remember Learn the pattern →
  7. Number of 1 Bits Easy
  8. Set the rightmost unset bit Easy
  9. XOR of 1 to n Numbers Easy
  10. XOR Basics Learn the pattern →
  11. Swap two numbers Easy
  12. Hamming Distance Easy
  13. Missing / Repeated Numbers Learn the pattern →
  14. Single Number Easy
  15. Missing Number Easy
  16. Two numbers with odd occurrences Medium
2

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
  1. Recursion Learn the pattern →
  2. Binary Tree Inorder Traversal (Recursive) Easy
  3. Binary Tree Preorder Traversal (Recursive) Easy
  4. Binary Tree Postorder Traversal (Recursive) Easy
  5. Binary Tree Inorder Traversal (Iterative) Easy
  6. Binary Tree Preorder Traversal (Iterative) Easy
  7. Binary Tree Postorder Traversal (Iterative) Easy
  8. Maximum Depth of Binary Tree Easy
  9. Same Tree Easy
  10. Symmetric Tree Easy
  11. Invert Binary Tree Easy
  12. Backtracking Learn the pattern →
  13. Root to Leaf Paths Medium
  14. Traversals Learn the pattern →
  15. Binary Tree Level Order Traversal Medium
  16. Binary Tree Zigzag Level Order Traversal Medium
  17. Binary Tree Level Order Traversal II Medium
  18. Views Learn the pattern →
  19. Top View of Binary Tree Medium
  20. Bottom View of Binary Tree Medium
  21. Left View of Binary Tree Easy
  22. Binary Tree Right Side View Medium
  23. BST Basics Learn the pattern →
  24. Search in a Binary Search Tree Easy
  25. Minimum element in BST Easy
  26. Insert into a Binary Search Tree Medium
  27. Postorder + Multiple Return Values Learn the pattern →
  28. Balanced Binary Tree Easy
  29. Validate Binary Search Tree Medium
  30. Children Sum in a Binary Tree Easy
  31. Largest BST Medium
  32. LCA Learn the pattern →
  33. Lowest Common Ancestor of a Binary Tree Medium
  34. Lowest Common Ancestor of a Binary Search Tree Medium
  35. Child + Ancestor Handling Learn the pattern →
  36. Amount of Time for Binary Tree to Be Infected Medium
  37. Burning Tree Hard
  38. All Nodes Distance K in Binary Tree Medium
  39. Reverse Inorder Traversal Learn the pattern →
  40. Kth Smallest Element in a BST Medium
  41. Kth Largest Element in BST Easy
  42. Tree Serialization / Deserialization Learn the pattern →
  43. Construct Binary Tree from Preorder and Inorder Traversal Medium
  44. Construct Binary Tree from Inorder and Postorder Traversal Medium
  45. Construct Binary Search Tree from Preorder Traversal Medium
  46. Serialize and Deserialize Binary Tree Hard
  47. Tree to Lists and vice-versa Learn the pattern →
  48. Binary Tree to DLL Hard
  49. Flatten Binary Tree to Linked List Medium
  50. Miscellaneous BST Questions Learn the pattern →
  51. Inorder Successor in BST Medium
  52. Inorder predecessor Medium
  53. Floor in BST Easy
  54. Ceil in BST Easy
  55. Two Sum IV - Input is a BST Easy
Heaps6
  1. Top K / Kth Largest / Smallest Learn the pattern →
  2. Kth Largest Element in an Array Medium
  3. Kth Largest Element in a Stream Easy
  4. Composite comparator Learn the pattern →
  5. Top K Frequent Elements Medium
  6. Merge K Sorted Learn the pattern →
  7. Merge k Sorted Lists Hard
  8. Merge k Sorted Arrays Medium
  9. Advanced Learn the pattern →
  10. Find K Pairs with Smallest Sums Medium
Intervals9
  1. Basics Learn the pattern →
  2. Detect overlap unsorted Easy
  3. Detect overlap sorted intervals Easy
  4. Interval List Intersections Medium
  5. Meeting Rooms Easy
  6. Merge two unsorted intervals Easy
  7. Merge two sorted intervals Easy
  8. Merge Intervals Medium
  9. Line Sweep Learn the pattern →
  10. Meeting Rooms II Medium
  11. Car Pooling Medium
Tries2
  1. Basics Learn the pattern →
  2. Implement Trie (Prefix Tree) Medium
  3. Implement Trie ll Medium
Graphs18
  1. BFS / DFS Basics Learn the pattern →
  2. BFS - Normal + Level by Level Easy
  3. DFS - Recursive + Iterative Easy
  4. Matrix Graphs Learn the pattern →
  5. Flood Fill Easy
  6. Connected Components Learn the pattern →
  7. Number of Provinces Medium
  8. Number of Islands Medium
  9. BFS for shortest path Learn the pattern →
  10. Shortest Path in Binary Matrix Medium
  11. DFS - Complement Trick Learn the pattern →
  12. Surrounded Regions Medium
  13. Multi source BFS Learn the pattern →
  14. Rotting Oranges Medium
  15. 01 Matrix Medium
  16. Cycle Detection Learn the pattern →
  17. Undirected Graph Cycle Medium
  18. Directed Graph Cycle Medium
  19. Is Graph Bipartite? Medium
  20. Topological Sort Learn the pattern →
  21. Topological sort using BFS Medium
  22. Course Schedule Medium
  23. Course Schedule II Medium
  24. Alien Dictionary Hard
  25. Dijkstra Learn the pattern →
  26. Network Delay Time Medium
  27. Find the City With the Smallest Number of Neighbors at a Threshold Distance Medium
Design Data Structures6
  1. Pre-processing + tradeoffs Learn the pattern →
  2. Design Neighbor Sum Service Easy
  3. Linked Lists Learn the pattern →
  4. Design Linked List Medium
  5. Design Front Middle Back Queue Medium
  6. Stack Learn the pattern →
  7. Min Stack Medium
  8. Design a Stack With Increment Operation Medium
  9. Maximum Frequency Stack Hard
3

Dynamic programming

From climbing stairs to edit distance: states, choices and tables, one family at a time.

34 items · about 34 hours

Dynamic Programming34
  1. 1D DP Learn the pattern →
  2. Fibonacci Number Easy
  3. Climbing Stairs Easy
  4. Min Cost Climbing Stairs (2 jumps) Easy
  5. Minimal Cost (k jumps) Medium
  6. Decode Ways Medium
  7. Word Break Medium
  8. Alternate Selection / Pick / Not pick Learn the pattern →
  9. House Robber Medium
  10. House Robber II Medium
  11. 2D DP Learn the pattern →
  12. Minimum Path Sum Medium
  13. Unique Paths Medium
  14. Unique Paths II Medium
  15. 2D DP - max/min of last row Learn the pattern →
  16. Minimum Falling Path Sum Medium
  17. Triangle Medium
  18. Geek's Training Medium
  19. Squares Learn the pattern →
  20. Maximal Square Medium
  21. Count Square Submatrices with All Ones Medium
  22. Largest 1-Bordered Square Medium
  23. State Machine DP - Stock Problems Learn the pattern →
  24. Best Time to Buy and Sell Stock Easy
  25. Best Time to Buy and Sell Stock II Medium
  26. Best Time to Buy and Sell Stock with Transaction Fee Medium
  27. Best Time to Buy and Sell Stock with Cooldown Medium
  28. Best Time to Buy and Sell Stock III Hard
  29. Knapsack Learn the pattern →
  30. 0 - 1 Knapsack Problem Medium
  31. Fractional Knapsack Medium
  32. Knapsack with Duplicate Items Medium
  33. Coin Change Medium
  34. Coin Change II Medium
  35. Strings Learn the pattern →
  36. Edit Distance Medium
  37. Longest Common Subsequence Medium
  38. Longest Palindromic Subsequence Medium
  39. Minimum Insertion Steps to Make a String Palindrome Hard
  40. Longest Common Substring Medium
  41. Interval DP Learn the pattern →
  42. Matrix Chain Multiplication Hard
  43. Burst Balloons Hard
4

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
  1. LRU Cache Medium · 144 companies
  2. Longest Substring Without Repeating Characters Medium · 118 companies
  3. Group Anagrams Medium · 86 companies
  4. Longest Palindromic Substring Medium · 72 companies
  5. Container With Most Water Medium · 63 companies
  6. Valid Palindrome Easy · 57 companies
  7. Spiral Matrix Medium · 56 companies
  8. Insert Delete GetRandom O(1) Medium · 54 companies
  9. Move Zeroes Easy · 46 companies
  10. Valid Anagram Easy · 46 companies
  11. Longest Common Prefix Easy · 45 companies
  12. Merge Sorted Array Easy · 44 companies
  13. Rotate Image Medium · 42 companies
  14. Reverse String Easy · 41 companies
  15. String Compression Medium · 38 companies
  16. Longest Consecutive Sequence Medium · 38 companies
  17. Add Two Numbers Medium · 37 companies
  18. Decode String Medium · 35 companies
  19. Next Permutation Medium · 35 companies
  20. Longest Increasing Subsequence Medium · 33 companies
  21. Jump Game Medium · 32 companies
  22. Implement Queue using Stacks Easy · 32 companies
  23. Generate Parentheses Medium · 32 companies
  24. First Unique Character in a String Easy · 32 companies
  25. Palindrome Number Easy · 31 companies
  26. Sort an Array Medium · 31 companies
  27. Time Based Key-Value Store Medium · 29 companies
  28. Design HashMap Easy · 29 companies
  29. Jump Game II Medium · 29 companies
  30. Letter Combinations of a Phone Number Medium · 29 companies
5

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
  1. The web, end to end Concept 1
  2. DNS Concept 2
  3. Load balancers Concept 5
  4. API design Concept 8
  5. Real-time Concept 9
  6. Caching Concept 11
  7. CDN Concept 12
  8. Monolith vs microservices Concept 13
  9. SQL vs NoSQL Concept 16
  10. Indexes Concept 17
  11. Replication Concept 20
  12. Sharding Concept 21
  13. CAP theorem Concept 25
  14. Message queues Concept 28
  15. Rate limiting Concept 30
  16. Estimation Concept 36
How to answer1
  1. The LADDER method for design questions Method
Design problems6
  1. URL shortener Design problem 1
  2. Pastebin Design problem 2
  3. Rate limiter Design problem 3
  4. WhatsApp Design problem 5
  5. News Feed Design problem 11
  6. Notification system Design problem 37
6

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
  1. Classes and objects Lesson 1
  2. Encapsulation Lesson 2
  3. Abstraction Lesson 3
  4. Inheritance Lesson 4
  5. Polymorphism Lesson 5
  6. Interface vs abstract Lesson 6
  7. Composition > inheritance Lesson 7
  8. Single responsibility Lesson 8
  9. Open/closed principle Lesson 9
  10. Liskov substitution Lesson 10
  11. Interface segregation Lesson 11
  12. Dependency inversion Lesson 12
Patterns you will use10
  1. Class diagrams Lesson 17
  2. Singleton Lesson 22
  3. Factory method Lesson 23
  4. Builder Lesson 25
  5. Strategy pattern Lesson 34
  6. Observer pattern Lesson 35
  7. State pattern Lesson 36
  8. Decorator pattern Lesson 30
  9. How to answer LLD Lesson 47
  10. Common LLD mistakes Lesson 48
Machine coding problems8
  1. Parking lot Problem 1
  2. Tic-tac-toe Problem 26
  3. Snakes and ladders Problem 11
  4. Vending machine Problem 2
  5. Logger with sinks Problem 14
  6. Library management Problem 15
  7. Splitwise Problem 4
  8. Elevator system Problem 3
7

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
  1. Ownership Sample answer
  2. Collaboration and inclusion Sample answer
  3. Failure and learning Sample answer
  4. Disagreement and candor Sample answer
  5. Curiosity and growth Sample answer
  6. 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