System Design & DSA Masterclass Advanced +450 XP

DSA 150+ Curated Problems

The Ultimate 150: Core Pattern Problems

Mastering Data Structures and Algorithms requires focused practice. We have curated 150+ essential problems mapped directly to the 20 foundational patterns. Solving these will prepare you for any top-tier technical interview.

1. Arrays, Hashing & Two Pointers (25 Problems)
  • Easy: Two Sum, Valid Anagram, Contains Duplicate, Valid Palindrome.
  • Medium: Group Anagrams, Top K Frequent Elements, Product of Array Except Self, Longest Consecutive Sequence, 3Sum, Container With Most Water.
  • Hard: Trapping Rain Water.
2. Sliding Window & Stack (20 Problems)
  • Medium: Longest Substring Without Repeating Characters, Longest Repeating Character Replacement, Valid Parentheses, Evaluate Reverse Polish Notation, Daily Temperatures.
  • Hard: Minimum Window Substring, Sliding Window Maximum, Largest Rectangle in Histogram.
3. Trees, Tries & Graphs (35 Problems)
  • Easy: Invert Binary Tree, Maximum Depth, Subtree of Another Tree.
  • Medium: Lowest Common Ancestor, Binary Tree Level Order Traversal, Implement Trie (Prefix Tree), Number of Islands, Clone Graph, Course Schedule (Topological Sort).
  • Hard: Serialize and Deserialize Binary Tree, Word Search II, Alien Dictionary.

Advanced Patterns: DP, Heaps & Backtracking

The most challenging interview questions typically involve exploring massive solution spaces or optimizing subproblems.

4. Backtracking (15 Problems)
  • Medium: Subsets, Combination Sum, Permutations, Word Search, Letter Combinations of a Phone Number.
  • Hard: N-Queens, Sudoku Solver.
5. Heaps & Priority Queues (15 Problems)
  • Medium: Kth Largest Element in an Array, Task Scheduler, Design Twitter.
  • Hard: Find Median from Data Stream, Merge K Sorted Lists.
6. 1D & 2D Dynamic Programming (30 Problems)
  • Easy: Climbing Stairs, Min Cost Climbing Stairs.
  • Medium: House Robber I & II, Longest Palindromic Substring, Coin Change, Word Break, Unique Paths, Longest Common Subsequence.
  • Hard: Burst Balloons, Regular Expression Matching, Edit Distance.