DSA 150+ Curated Problems
AI Learning Mentor
Generative insights & diagnostic help
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.
- 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.
- 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.
- 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.
- Medium: Subsets, Combination Sum, Permutations, Word Search, Letter Combinations of a Phone Number.
- Hard: N-Queens, Sudoku Solver.
- Medium: Kth Largest Element in an Array, Task Scheduler, Design Twitter.
- Hard: Find Median from Data Stream, Merge K Sorted Lists.
- 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.