FREE PREP PATH · 2 OF 2
Senior and staff: the interview prep path
Everything in the first path, then the medium and hard problems companies report most, every system design walkthrough, the full low level design course, every behavioral theme and AI engineering. Cover it and you are ready for any loop.
For SDE 3, senior, staff and principal engineers (5+ years)
- DSA problems
- 593
- System design
- 138
- Low level design
- 90
- Behavioral themes
- 16
- At 2 hours a day
- ~42 weeks
- Optional: AI engineering
- +35
- 1DSA core: the 231 sheet0/231
- 2Advanced DSA: most reported mediums and hards0/362
- 3System design, all of it0/138
- 4Low level design, the full course0/90
- 5Leadership and behavioral0/16
- 6AI engineering0/35
Progress is saved in this browser. Create a free account to keep it on every device.
DSA core: the 231 sheet
The same core sheet as the first path. If you already know it, move fast: revise each problem once and log it.
231 items · about 116 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
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
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
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
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
Advanced DSA: most reported mediums and hards
362 problems outside the core sheet that candidates report at three or more companies, from LRU cache to median of two sorted arrays.
362 items · about 362 hours
Arrays & Hashing113
- Two Sum Learn the pattern →
- Pairs of Songs With Total Durations Divisible by 60 Medium · 6 companies
- Count Good Meals Medium · 3 companies
- Kadane's Algorithm Learn the pattern →
- Gas Station Medium · 27 companies
- Maximum Product Subarray Medium · 20 companies
- Maximum Sum Circular Subarray Medium · 11 companies
- Best Sightseeing Pair Medium · 3 companies
- Two Pointer Learn the pattern →
- Trapping Rain Water Hard · 92 companies
- Container With Most Water Medium · 63 companies
- String Compression Medium · 38 companies
- 4Sum Medium · 13 companies
- Remove Duplicates from Sorted Array II Medium · 8 companies
- Longest Mountain in Array Medium · 8 companies
- Break a Palindrome Medium · 6 companies
- Rotating the Box Medium · 6 companies
- Boats to Save People Medium · 6 companies
- Maximize Distance to Closest Person Medium · 4 companies
- Sort Transformed Array Medium · 4 companies
- One Edit Distance Medium · 4 companies
- Divide Players Into Teams of Equal Skill Medium · 3 companies
- Right to Left Traversal Learn the pattern →
- Next Permutation Medium · 35 companies
- Multiply Strings Medium · 13 companies
- Maximum Swap Medium · 6 companies
- Buildings With an Ocean View Medium · 6 companies
- Next Greater Element III Medium · 6 companies
- In-place Transformations Learn the pattern →
- Rotate Image Medium · 42 companies
- First Missing Positive Hard · 38 companies
- Game of Life Medium · 10 companies
- Merge Sort Like Approach Learn the pattern →
- Sort an Array Medium · 31 companies
- Reverse Pairs Hard · 4 companies
- Prefix Sum Strategy Learn the pattern →
- Contiguous Array Medium · 13 companies
- Ways to Make a Fair Array Medium · 7 companies
- Maximum Size Subarray Sum Equals k Medium · 6 companies
- Continuous Subarray Sum Medium · 5 companies
- Subarray Sums Divisible by K Medium · 4 companies
- Friends Of Appropriate Ages Medium · 4 companies
- Count Vowel Strings in Ranges Medium · 4 companies
- Sliding Window · Fixed Learn the pattern →
- Permutation in String Medium · 14 companies
- Find All Anagrams in a String Medium · 9 companies
- Maximum Points You Can Obtain from Cards Medium · 6 companies
- Alert Using Same Key-Card Three or More Times in a One Hour Period Medium · 4 companies
- Repeated DNA Sequences Medium · 3 companies
- Sliding Window · Variable Learn the pattern →
- Longest Substring Without Repeating Characters Medium · 118 companies
- Max Consecutive Ones III Medium · 20 companies
- Longest Repeating Character Replacement Medium · 17 companies
- Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit Medium · 10 companies
- Fruit Into Baskets Medium · 9 companies
- Maximum Number of Visible Points Hard · 5 companies
- Longest Subarray of 1's After Deleting One Element Medium · 5 companies
- Frequency of the Most Frequent Element Medium · 5 companies
- Count Subarrays With Fixed Bounds Hard · 4 companies
- Count Number of Nice Subarrays Medium · 3 companies
- Sliding Window · Hash Map Learn the pattern →
- Subarrays with K Different Integers Hard · 14 companies
- Longest Substring with At Most K Distinct Characters Medium · 7 companies
- Maximum Number of Occurrences of a Substring Medium · 5 companies
- Count Zero Request Servers Medium · 4 companies
- Contains Duplicate III Hard · 3 companies
- Hashing Learn the pattern →
- Group Anagrams Medium · 86 companies
- Minimum Number of Steps to Make Two Strings Anagram Medium · 11 companies
- Valid Sudoku Medium · 10 companies
- Max Points on a Line Hard · 8 companies
- Subdomain Visit Count Medium · 7 companies
- K-diff Pairs in an Array Medium · 6 companies
- Number of Black Blocks Medium · 6 companies
- Number of Divisible Triplet Sums Medium · 5 companies
- Invalid Transactions Medium · 5 companies
- Custom Sort String Medium · 5 companies
- Palindrome Pairs Hard · 4 companies
- Group Shifted Strings Medium · 4 companies
- Shortest Uncommon Substring in an Array Medium · 3 companies
- Number of Matching Subsequences Medium · 3 companies
- Task Scheduler II Medium · 3 companies
- Matrix Traversal Learn the pattern →
- Spiral Matrix Medium · 56 companies
- Diagonal Traverse Medium · 12 companies
- Best Meeting Point Hard · 5 companies
- Sparse Matrix Multiplication Medium · 4 companies
- Elimination Recurrence Learn the pattern →
- Find the Winner of the Circular Game Medium · 7 companies
- Greedy Learn the pattern →
- Jump Game Medium · 32 companies
- Jump Game II Medium · 29 companies
- Integer to Roman Medium · 25 companies
- Task Scheduler Medium · 22 companies
- Reorganize String Medium · 15 companies
- Largest Number Medium · 13 companies
- Candy Hard · 11 companies
- Minimum Number of Taps to Open to Water a Garden Hard · 10 companies
- Two City Scheduling Medium · 8 companies
- Guess the Word Hard · 5 companies
- Maximum Palindromes After Operations Medium · 5 companies
- Maximize Greatness of an Array Medium · 3 companies
- Make Lexicographically Smallest Array by Swapping Elements Medium · 3 companies
- Advantage Shuffle Medium · 3 companies
- Hash Set Lookup Learn the pattern →
- Longest Consecutive Sequence Medium · 38 companies
- Line Reflection Medium · 5 companies
- Simulation Learn the pattern →
- Text Justification Hard · 32 companies
- Integer to English Words Hard · 21 companies
- String to Integer (atoi) Medium · 21 companies
- Validate IP Address Medium · 18 companies
- Candy Crush Medium · 7 companies
- Count and Say Medium · 7 companies
- Zigzag Conversion Medium · 7 companies
- Valid Number Hard · 5 companies
- Robot Bounded In Circle Medium · 4 companies
- String Matching (KMP) Learn the pattern →
- Shortest Palindrome Hard · 4 companies
- Math / Number Theory Learn the pattern →
- Count Primes Medium · 23 companies
- Reverse Integer Medium · 19 companies
- Reaching Points Hard · 11 companies
- Angle Between Hands of a Clock Medium · 9 companies
- Water and Jug Problem Medium · 7 companies
- Consecutive Numbers Sum Hard · 6 companies
- Bulb Switcher Medium · 4 companies
- Candidate Generation Learn the pattern →
- Minimize Result by Adding Parentheses to Expression Medium · 4 companies
- String Basics Learn the pattern →
- Encode and Decode Strings Medium · 6 companies
- Compare Version Numbers Medium · 4 companies
- Sorting Learn the pattern →
- Minimum Time Difference Medium · 3 companies
Stack13
- Stack Basics Learn the pattern →
- Decode String Medium · 35 companies
- Basic Calculator II Medium · 22 companies
- Simplify Path Medium · 15 companies
- Remove All Adjacent Duplicates in String II Medium · 14 companies
- Basic Calculator III Hard · 9 companies
- Minimum Remove to Make Valid Parentheses Medium · 8 companies
- Valid Parenthesis String Medium · 8 companies
- Remove All Occurrences of a Substring Medium · 7 companies
- Minimum Number of Swaps to Make the String Balanced Medium · 5 companies
- Exclusive Time of Functions Medium · 5 companies
- Basic Calculator IV Hard · 4 companies
- Maximum Score From Removing Substrings Medium · 3 companies
- Minimum Add to Make Parentheses Valid Medium · 3 companies
Monotonic Stack10
- Monotonic Stack Learn the pattern →
- Sliding Window Maximum Hard · 55 companies
- Remove K Digits Medium · 11 companies
- Maximal Rectangle Hard · 11 companies
- Online Stock Span Medium · 9 companies
- Remove Duplicate Letters Medium · 7 companies
- Number of Visible People in a Queue Hard · 7 companies
- Using a Robot to Print the Lexicographically Smallest String Medium · 6 companies
- Car Fleet Medium · 6 companies
- Shortest Subarray with Sum at Least K Hard · 4 companies
- Poisonous Plants Hard · 3 companies
Linked List5
- Dummy Node Pattern Learn the pattern →
- Add Two Numbers Medium · 37 companies
- Slow Fast Pointers Learn the pattern →
- Find the Duplicate Number Medium · 13 companies
- Reorder List Medium · 8 companies
- Miscellaneous Learn the pattern →
- Odd Even Linked List Medium · 6 companies
- Merge In Between Linked Lists Medium · 5 companies
Binary Search18
- Basics Learn the pattern →
- Time Based Key-Value Store Medium · 29 companies
- Random Pick with Weight Medium · 22 companies
- Snapshot Array Medium · 13 companies
- Bisect Learn the pattern →
- Find K Closest Elements Medium · 11 companies
- Heaters Medium · 6 companies
- 2D Binary Search + Step Search Learn the pattern →
- Leftmost Column with at Least a One Medium · 4 companies
- Binary Search on Answer Space Learn the pattern →
- Split Array Largest Sum Hard · 20 companies
- Capacity To Ship Packages Within D Days Medium · 11 companies
- Kth Smallest Element in a Sorted Matrix Medium · 8 companies
- Minimum Limit of Balls in a Bag Medium · 6 companies
- Sell Diminishing-Valued Colored Balls Medium · 5 companies
- Find the Smallest Divisor Given a Threshold Medium · 5 companies
- House Robber IV Medium · 4 companies
- Magnetic Force Between Two Balls Medium · 4 companies
- Reach a Number Medium · 3 companies
- Minimize Max Distance to Gas Station Hard · 3 companies
- Cutting Ribbons Medium · 3 companies
- Binary Search on Partition Learn the pattern →
- Median of Two Sorted Arrays Hard · 53 companies
Recursion & Backtracking20
- Basic Recursion Learn the pattern →
- Nested List Weight Sum Medium · 5 companies
- Tower of Hanoi Medium · 5 companies
- Nested List Weight Sum II Medium · 3 companies
- Pick / Not-Pick Learn the pattern →
- Generate Parentheses Medium · 32 companies
- Remove Invalid Parentheses Hard · 5 companies
- Maximum Length of a Concatenated String with Unique Characters Medium · 4 companies
- Matchsticks to Square Medium · 3 companies
- 2D Matrix Backtracking Learn the pattern →
- Sudoku Solver Hard · 16 companies
- Rat in a Maze Medium · 5 companies
- N-Queens II Hard · 3 companies
- Robot Room Cleaner Hard · 3 companies
- Choice per Position Learn the pattern →
- Letter Combinations of a Phone Number Medium · 29 companies
- Word Break II Hard · 16 companies
- Restore IP Addresses Medium · 12 companies
- Palindrome Partitioning Medium · 7 companies
- Word Pattern II Medium · 5 companies
- Brace Expansion Medium · 3 companies
- Divide and Conquer Learn the pattern →
- Special Binary String Hard · 7 companies
- Construct Quad Tree Medium · 5 companies
- Meet in the Middle Learn the pattern →
- Partition Array Into Two Arrays to Minimize Sum Difference Hard · 5 companies
Trees & BST22
- Recursion Learn the pattern →
- Sum Root to Leaf Numbers Medium · 3 companies
- Backtracking Learn the pattern →
- Path Sum III Medium · 8 companies
- Path Sum II Medium · 7 companies
- Traversals Learn the pattern →
- Populating Next Right Pointers in Each Node Medium · 7 companies
- Check Completeness of a Binary Tree Medium · 5 companies
- Views Learn the pattern →
- Vertical Order Traversal of a Binary Tree Hard · 19 companies
- Boundary of Binary Tree Medium · 14 companies
- Binary Tree Vertical Order Traversal Medium · 8 companies
- BST Basics Learn the pattern →
- Binary Search Tree Iterator Medium · 9 companies
- Delete Node in a BST Medium · 7 companies
- Recover Binary Search Tree Medium · 6 companies
- Trim a Binary Search Tree Medium · 5 companies
- Postorder + Multiple Return Values Learn the pattern →
- Binary Tree Maximum Path Sum Hard · 33 companies
- Binary Tree Cameras Hard · 9 companies
- House Robber III Medium · 7 companies
- Delete Nodes And Return Forest Medium · 5 companies
- Find Leaves of Binary Tree Medium · 5 companies
- Distribute Coins in Binary Tree Medium · 4 companies
- LCA Learn the pattern →
- Lowest Common Ancestor of a Binary Tree III Medium · 6 companies
- Step-By-Step Directions From a Binary Tree Node to Another Medium · 3 companies
- Child + Ancestor Handling Learn the pattern →
- Count Good Nodes in Binary Tree Medium · 4 companies
- Tree to Lists and vice-versa Learn the pattern →
- Convert Sorted List to Binary Search Tree Medium · 6 companies
Heaps21
- Top K / Kth Largest / Smallest Learn the pattern →
- Top K Frequent Words Medium · 21 companies
- K Closest Points to Origin Medium · 16 companies
- Minimum Cost to Connect Sticks Medium · 12 companies
- Sort Characters By Frequency Medium · 10 companies
- Furthest Building You Can Reach Medium · 9 companies
- Least Number of Unique Integers after K Removals Medium · 5 companies
- Remove Stones to Minimize the Total Medium · 4 companies
- Composite comparator Learn the pattern →
- Rank Teams by Votes Medium · 7 companies
- Single-Threaded CPU Medium · 3 companies
- Merge K Sorted Learn the pattern →
- Design Twitter Medium · 9 companies
- Smallest Range Covering Elements from K Lists Hard · 6 companies
- Advanced Learn the pattern →
- Find Median from Data Stream Hard · 51 companies
- Trapping Rain Water II Hard · 9 companies
- Sliding Window Median Hard · 9 companies
- The Skyline Problem Hard · 7 companies
- Maximum Number of Events That Can Be Attended Medium · 7 companies
- Zero Array Transformation III Medium · 5 companies
- Minimum Number of Refueling Stops Hard · 5 companies
- Number of Orders in the Backlog Medium · 4 companies
- Longest Happy String Medium · 3 companies
- Stock Price Fluctuation Medium · 3 companies
Intervals13
- Basics Learn the pattern →
- Insert Interval Medium · 10 companies
- Minimum Number of Arrows to Burst Balloons Medium · 7 companies
- Non-overlapping Intervals Medium · 7 companies
- Two Best Non-Overlapping Events Medium · 5 companies
- Partition Labels Medium · 4 companies
- My Calendar I Medium · 4 companies
- Line Sweep Learn the pattern →
- Employee Free Time Hard · 9 companies
- Minimum Platforms Medium · 6 companies
- Number of Flowers in Full Bloom Hard · 4 companies
- Meeting Rooms III Hard · 4 companies
- Brightest Position on Street Medium · 4 companies
- Rectangle Area II Hard · 3 companies
- Segment Tree Learn the pattern →
- Block Placement Queries Hard · 7 companies
Tries6
- Basics Learn the pattern →
- Design In-Memory File System Hard · 15 companies
- Search Suggestions System Medium · 9 companies
- Design Search Autocomplete System Hard · 9 companies
- Find the Length of the Longest Common Prefix Medium · 7 companies
- Design Add and Search Words Data Structure Medium · 6 companies
- Trie + Backtracking Learn the pattern →
- Word Search II Hard · 16 companies
Graphs52
- BFS / DFS Basics Learn the pattern →
- Clone Graph Medium · 15 companies
- Critical Connections in a Network Hard · 6 companies
- Web Crawler Multithreaded Medium · 5 companies
- Keys and Rooms Medium · 5 companies
- Web Crawler Medium · 4 companies
- Employee Importance Medium · 3 companies
- All Paths From Source to Target Medium · 3 companies
- Matrix Graphs Learn the pattern →
- Max Area of Island Medium · 14 companies
- Number of Distinct Islands Medium · 9 companies
- Minesweeper Medium · 5 companies
- The Maze Medium · 3 companies
- Number of Closed Islands Medium · 3 companies
- Connected Components Learn the pattern →
- Evaluate Division Medium · 21 companies
- Accounts Merge Medium · 16 companies
- Making A Large Island Hard · 13 companies
- Number of Islands II Hard · 10 companies
- Minimize Malware Spread Hard · 7 companies
- The Earliest Moment When Everyone Become Friends Medium · 7 companies
- Most Stones Removed with Same Row or Column Medium · 5 companies
- Smallest String With Swaps Medium · 5 companies
- Number of Operations to Make Network Connected Medium · 4 companies
- Satisfiability of Equality Equations Medium · 3 companies
- BFS for shortest path Learn the pattern →
- Word Ladder Hard · 43 companies
- Minimum Knight Moves Medium · 13 companies
- Word Ladder II Hard · 12 companies
- Bus Routes Hard · 11 companies
- Open the Lock Medium · 11 companies
- Shortest Path in a Grid with Obstacles Elimination Hard · 10 companies
- Snakes and Ladders Medium · 8 companies
- Zuma Game Hard · 4 companies
- Shortest Path to Get All Keys Hard · 4 companies
- Multi source BFS Learn the pattern →
- Shortest Distance from All Buildings Hard · 7 companies
- Walls and Gates Medium · 7 companies
- Pacific Atlantic Water Flow Medium · 7 companies
- Shortest Bridge Medium · 6 companies
- Find the Safest Path in a Grid Medium · 3 companies
- Cycle Detection Learn the pattern →
- Redundant Connection Medium · 4 companies
- Possible Bipartition Medium · 4 companies
- Topological Sort Learn the pattern →
- Longest Increasing Path in a Matrix Hard · 13 companies
- Parallel Courses III Hard · 8 companies
- Find All Possible Recipes from Given Supplies Medium · 5 companies
- Collect Coins in a Tree Hard · 5 companies
- Maximum Employees to Be Invited to a Meeting Hard · 3 companies
- Dijkstra Learn the pattern →
- Cheapest Flights Within K Stops Medium · 17 companies
- Path With Minimum Effort Medium · 5 companies
- Minimum Time to Visit a Cell In a Grid Hard · 5 companies
- Swim in Rising Water Hard · 4 companies
- Eulerian Path (Hierholzer) Learn the pattern →
- Reconstruct Itinerary Hard · 20 companies
- Candidate Elimination Learn the pattern →
- Find the Celebrity Medium · 11 companies
- Re-rooting DP Learn the pattern →
- Minimum Edge Reversals So Every Node Is Reachable Hard · 8 companies
- Sum of Distances in Tree Hard · 3 companies
- Minimum Spanning Tree Learn the pattern →
- Min Cost to Connect All Points Medium · 3 companies
Dynamic Programming35
- 1D DP Learn the pattern →
- Longest Increasing Subsequence Medium · 33 companies
- Maximum Profit in Job Scheduling Hard · 19 companies
- Russian Doll Envelopes Hard · 9 companies
- Longest String Chain Medium · 9 companies
- Delete and Earn Medium · 8 companies
- Minimum Cost For Tickets Medium · 7 companies
- Frog Jump Hard · 7 companies
- Paint House Medium · 4 companies
- Time Needed to Rearrange a Binary String Medium · 4 companies
- Maximum Earnings From Taxi Medium · 3 companies
- Race Car Hard · 3 companies
- 2D DP Learn the pattern →
- Cherry Pickup Hard · 9 companies
- Dungeon Game Hard · 9 companies
- Minimum Difficulty of a Job Schedule Hard · 4 companies
- Cherry Pickup II Hard · 3 companies
- State Machine DP - Stock Problems Learn the pattern →
- Best Time to Buy and Sell Stock IV Hard · 7 companies
- Knapsack Learn the pattern →
- Partition Equal Subset Sum Medium · 10 companies
- Perfect Squares Medium · 7 companies
- Target Sum Medium · 6 companies
- Painting the Walls Hard · 3 companies
- Split Array With Same Average Hard · 3 companies
- Strings Learn the pattern →
- Longest Palindromic Substring Medium · 72 companies
- Regular Expression Matching Hard · 21 companies
- Longest Valid Parentheses Hard · 19 companies
- Palindromic Substrings Medium · 19 companies
- Wildcard Matching Hard · 15 companies
- Distinct Subsequences Hard · 9 companies
- Maximum Length of Repeated Subarray Medium · 5 companies
- Interleaving String Medium · 3 companies
- Palindrome Partitioning II Hard · 3 companies
- Number of Ways to Form a Target String Given a Dictionary Hard · 3 companies
- Interval DP Learn the pattern →
- Predict the Winner Medium · 8 companies
- Remove Boxes Hard · 5 companies
- Strange Printer Hard · 3 companies
- Bitmask DP Learn the pattern →
- Optimal Account Balancing Hard · 10 companies
Bit Manipulation4
- Basics Learn the pattern →
- Sum of Two Integers Medium · 5 companies
- UTF-8 Validation Medium · 3 companies
- Tricks to remember Learn the pattern →
- IP to CIDR Medium · 7 companies
- Minimum Operations to Reduce an Integer to 0 Medium · 3 companies
Design Data Structures30
- Pre-processing + tradeoffs Learn the pattern →
- Simple Bank System Medium · 12 companies
- Design Tic-Tac-Toe Medium · 11 companies
- Dot Product of Two Sparse Vectors Medium · 9 companies
- Shortest Word Distance II Medium · 8 companies
- Design A Leaderboard Medium · 6 companies
- Design File System Medium · 6 companies
- Range Module Hard · 3 companies
- Flatten 2D Vector Medium · 3 companies
- Design Log Storage System Medium · 3 companies
- Range Sum Query - Mutable Medium · 3 companies
- Linked Lists Learn the pattern →
- LRU Cache Medium · 144 companies
- LFU Cache Hard · 41 companies
- All O`one Data Structure Hard · 7 companies
- Stack Learn the pattern →
- Max Stack Hard · 12 companies
- Flatten Nested List Iterator Medium · 11 companies
- Design a Text Editor Hard · 6 companies
- Design Browser History Medium · 3 companies
- Queue / Circular Buffer Learn the pattern →
- Design Hit Counter Medium · 25 companies
- Design Circular Queue Medium · 21 companies
- Design Snake Game Medium · 7 companies
- First Unique Number Medium · 3 companies
- Hash Map + Array Learn the pattern →
- Insert Delete GetRandom O(1) Medium · 54 companies
- Insert Delete GetRandom O(1) - Duplicates allowed Hard · 5 companies
- Hash Map + Heap Learn the pattern →
- Design Authentication Manager Medium · 5 companies
- Cache With Time Limit Medium · 3 companies
- Randomized Algorithms Learn the pattern →
- Shuffle an Array Medium · 8 companies
- Design Skiplist Hard · 5 companies
- Dependency Graph Learn the pattern →
- Design Excel Sum Formula Hard · 6 companies
- Concurrency Learn the pattern →
- Design Bounded Blocking Queue Medium · 5 companies
- Simulation Learn the pattern →
- Design Memory Allocator Medium · 11 companies
System design, all of it
Senior loops are decided in the design round. Concepts first, then the technologies and building blocks, then every design problem and the deep dives.
138 items · about 55 hours
Concepts41
- The web, end to end Concept 1
- DNS Concept 2
- HTTP vs HTTPS Concept 3
- Servers Concept 4
- Load balancers Concept 5
- Reverse proxies Concept 6
- Nginx Concept 7
- API design Concept 8
- Real-time Concept 9
- Latency and numbers Concept 10
- Caching Concept 11
- CDN Concept 12
- Monolith vs microservices Concept 13
- Service communication Concept 14
- Stateless vs stateful Concept 15
- SQL vs NoSQL Concept 16
- Indexes Concept 17
- Transactions Concept 18
- Schema design Concept 19
- Replication Concept 20
- Sharding Concept 21
- Consistent hashing Concept 22
- Storage engines Concept 23
- Database types Concept 24
- CAP theorem Concept 25
- Consistency models Concept 26
- Quorums Concept 27
- Message queues Concept 28
- Idempotency Concept 29
- Rate limiting Concept 30
- Distributed locks Concept 31
- Clocks and IDs Concept 32
- Distributed transactions Concept 33
- Consensus Concept 34
- Availability Concept 35
- Estimation Concept 36
- Observability Concept 37
- Security basics Concept 38
- Deploying and scaling Concept 39
- Failure handling Concept 40
- Batch vs stream Concept 41
Technologies12
- PostgreSQL Technology 1
- MySQL Technology 2
- MongoDB Technology 3
- Cassandra Technology 4
- DynamoDB Technology 5
- Redis Technology 6
- Kafka Technology 7
- Elasticsearch Technology 8
- ZooKeeper and etcd Technology 9
- Object storage Technology 10
- Column stores Technology 11
- Which database? Technology 12
Building blocks14
- Load balancer Building block 1
- API gateway Building block 2
- Cache Building block 3
- CDN Building block 4
- Relational DB at scale Building block 5
- Key-value store Building block 6
- Object storage Building block 7
- Message queue Building block 8
- Pub-sub and fan-out Building block 9
- Search index Building block 10
- Rate limiter Building block 11
- Unique ID generator Building block 12
- Job scheduler Building block 13
- Monitoring and alerting Building block 14
Patterns7
- Real-time updates Pattern 1
- Scaling reads Pattern 2
- Scaling writes Pattern 3
- Contention Pattern 4
- Multi-step processes Pattern 5
- Large blobs Pattern 6
- Long-running tasks Pattern 7
How to answer1
Design problems57
- URL shortener Design problem 1
- Pastebin Design problem 2
- Rate limiter Design problem 3
- Unique ID generator Design problem 4
- WhatsApp Design problem 5
- Live comments Design problem 6
- Slack Design problem 7
- Google Docs Design problem 8
- Zoom Design problem 9
- Instagram Design problem 10
- News Feed Design problem 11
- Twitter / X Design problem 12
- TikTok Design problem 13
- Reddit Design problem 14
- Google Drive Design problem 15
- YouTube Design problem 16
- Netflix Design problem 17
- Spotify Design problem 18
- Yelp / proximity Design problem 19
- Food delivery Design problem 20
- Uber Design problem 21
- Google Maps Design problem 22
- Search autocomplete Design problem 23
- Web crawler Design problem 24
- News aggregator Design problem 25
- Google Search Design problem 26
- E-commerce (Amazon) Design problem 27
- Movie booking Design problem 28
- Flash sale Design problem 29
- Payment system Design problem 30
- Digital wallet Design problem 31
- Stock exchange Design problem 32
- Likes counter Design problem 33
- Real-time leaderboard Design problem 34
- Top K (trending) Design problem 35
- Ad click aggregator Design problem 36
- Notification system Design problem 37
- Job scheduler Design problem 38
- CI/CD pipeline Design problem 39
- Online code judge Design problem 40
- Monitoring and alerting Design problem 41
- A/B testing platform Design problem 42
- Authentication system Design problem 43
- Recommendation system Design problem 44
- Webhook delivery Design problem 45
- Inventory and orders Design problem 46
- Audit log Design problem 47
- Subscription billing Design problem 48
- Issue tracker (Jira) Design problem 49
- Content moderation Design problem 50
- Q&A (Stack Overflow) Design problem 51
- ChatGPT-style chat app Design problem 52
- RAG chatbot Design problem 53
- AI support agent Design problem 54
- AI coding assistant Design problem 55
- Semantic search Design problem 56
- LLM gateway Design problem 57
Deep dives6
- 1M rps: the budget Deep dive 1
- 1M rps: the edge Deep dive 2
- 1M rps: the app tier Deep dive 3
- 1M rps: caching and DB Deep dive 4
- 1M rps: load testing Deep dive 5
- 1M rps: failures, cost Deep dive 6
Low level design, the full course
All of OOP, SOLID and the 23 design patterns, thread safety, then every machine coding problem with full Java code.
90 items · about 51 hours
Lessons48
- 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
- DRY, KISS and YAGNI Lesson 13
- Coupling and cohesion Lesson 14
- Dependency injection Lesson 15
- Immutable value objects Lesson 16
- Class diagrams Lesson 17
- Use case diagrams Lesson 18
- Sequence diagrams Lesson 19
- Activity diagrams Lesson 20
- Requirements to classes Lesson 21
- Singleton Lesson 22
- Factory method Lesson 23
- Abstract factory Lesson 24
- Builder Lesson 25
- Prototype Lesson 26
- Adapter pattern Lesson 27
- Bridge pattern Lesson 28
- Composite pattern Lesson 29
- Decorator pattern Lesson 30
- Facade pattern Lesson 31
- Flyweight pattern Lesson 32
- Proxy pattern Lesson 33
- Strategy pattern Lesson 34
- Observer pattern Lesson 35
- State pattern Lesson 36
- Command pattern Lesson 37
- Chain of responsibility Lesson 38
- Template method Lesson 39
- Iterator Lesson 40
- Mediator Lesson 41
- Memento Lesson 42
- Visitor pattern Lesson 43
- Interpreter pattern Lesson 44
- Thread safety Lesson 45
- Producer-consumer Lesson 46
- How to answer LLD Lesson 47
- Common LLD mistakes Lesson 48
Machine coding problems42
- Parking lot Problem 1
- Vending machine Problem 2
- Elevator system Problem 3
- Splitwise Problem 4
- In-memory cache Problem 5
- Rate limiter Problem 6
- In-memory file system Problem 7
- Meeting room scheduler Problem 8
- Task scheduler Problem 9
- Pub/sub and message queue Problem 10
- Snakes and ladders Problem 11
- Vehicle rental Problem 12
- Food ordering and billing Problem 13
- Logger with sinks Problem 14
- Library management Problem 15
- Connection pool Problem 16
- Circuit breaker Problem 17
- In-memory database Problem 18
- Undo/redo and versions Problem 19
- Notification service Problem 20
- Movie ticket booking Problem 21
- Cab booking Problem 22
- Payment gateway Problem 23
- Parcel locker Problem 24
- HashMap from scratch Problem 25
- Tic-tac-toe Problem 26
- Chess Problem 27
- Traffic signal Problem 28
- ATM Problem 29
- Shopping cart Problem 30
- Online auction Problem 31
- Digital wallet Problem 32
- Hotel booking Problem 33
- Q&A site Problem 34
- Spreadsheet Problem 35
- Blackjack Problem 36
- Jigsaw puzzle Problem 37
- Cricket scoreboard Problem 38
- Social network Problem 39
- Restaurant management Problem 40
- Airline reservation Problem 41
- Stock brokerage Problem 42
Leadership and behavioral
At senior and staff level, behavioral rounds weigh as much as design. Have a story for every theme, with scope and impact to match your level.
16 items · about 6 hours
Every theme, one story each16
- Ownership Sample answer
- Customer focus Sample answer
- Disagreement and candor Sample answer
- Failure and learning Sample answer
- Ambiguity and judgment Sample answer
- Invention and simplification Sample answer
- Speed and delivery Sample answer
- High standards Sample answer
- Diving deep Sample answer
- Collaboration and inclusion Sample answer
- Growing others Sample answer
- Integrity and trust Sample answer
- Big impact and long-term thinking Sample answer
- Doing more with less Sample answer
- Curiosity and growth Sample answer
- Resilience and courage Sample answer
AI engineeringOptional
More and more senior loops ask how you would build with LLMs: agents, tool calling, retrieval and evals.
35 items · about 14 hours
Lessons35
- How LLMs work Lesson 1
- Tokens and context windows Lesson 2
- Embeddings Lesson 3
- Temperature and top-p Lesson 4
- Attention and transformers Lesson 5
- Choosing a model Lesson 6
- Prompt engineering basics Lesson 7
- Few-shot and reasoning Lesson 8
- Structured output Lesson 9
- Prompt caching Lesson 10
- Prompt injection Lesson 11
- What is an AI agent Lesson 12
- Tool calling Lesson 13
- The agent loop Lesson 14
- Agent memory Lesson 15
- Model Context Protocol (MCP) Lesson 16
- RAG Lesson 17
- Multi-agent systems Lesson 18
- Browser and computer use Lesson 19
- Guardrails and evals Lesson 20
- Chunking documents Lesson 21
- Vector databases and HNSW Lesson 22
- Hybrid search and reranking Lesson 23
- Advanced RAG Lesson 24
- Evaluating RAG Lesson 25
- Prompt, RAG or fine-tune? Lesson 26
- Fine-tuning and LoRA Lesson 27
- Distillation Lesson 28
- RLHF and DPO Lesson 29
- LLM evals in practice Lesson 30
- Tracing and observability Lesson 31
- Cost and latency Lesson 32
- Serving and inference Lesson 33
- Safety and red-teaming Lesson 34
- Privacy and compliance Lesson 35
Questions about this path
Who is the Senior and Staff path for?
SDE 3, senior, staff and principal engineers (5+ years). Walk into any senior or staff loop with no blind spot: coding, design depth, machine coding and leadership stories.
How long does it take?
About 42 weeks at two hours a day for the required stages (about 590 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.
Why repeat the 231 core problems at senior level?
Senior loops still have one or two coding rounds, and they expect clean, fast answers. Revise the core sheet quickly, then spend most of the time on the advanced problems and design.
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