Your structured roadmap to mastering data structures & algorithms for LeetCode 🔥 . 150+ classic problems, clean code in C++/Java/Python/Go/JavaScript, detailed explanations, mind maps, and visual guides to help you learn deeply and efficiently.
- Introduction to Arrays
- 704.Binary Search
- 27.Remove Element
- 977.Squares of a Sorted Array
- 209.Minimum Size Subarray Sum
- 59.Spiral Matrix II
- Array Summary
- Linked List Basics
- 203.Remove Linked List Elements
- 707.Design Linked List
- 206.Reverse Linked List
- 24.Swap Nodes In Pairs
- 19.Remove Nth Node From End Of List
- 160.Intersection Of Two Linked Lists
- 142.Linked List Cycle II
- Linked List Summary
- Introduction to Hash Table
- 242.Valid Anagram
- 349.Intersection of Two Arrays
- 202.Happy Number
- 1.Two Sum
- 454.4Sum II
- 383.Ransom Note
- 15.3Sum
- 18.4Sum
- Hash Table Summary
- 344.Reverse String
- 541.Reverse String II
- 151.Reverse Words in a String
- 28.Implement strStr()
- 459.Repeated Substring Pattern
- String Summary
- 27.Remove Element
- 344.Reverse String
- 151.Reverse Words in a String
- 206.Reverse Linked List
- 19.Remove Nth Node From End of List
- 160.Intersection of Two Linked Lists
- 142.Linked List Cycle II
- 15.3Sum
- 18.4Sum
- Double Pointers Summary
- Introduction to Stack and Queue
- 232.Implement Queue using Stacks
- 225.Implement Stack using Queues
- 20.Valid Parentheses
- 1047.Remove All Adjacent Duplicates in String
- 150.Evaluate Reverse Polish Notation
- 239.Sliding Window Maximum
- 347.Top K Frequent Elements
- Stack and Queue Summary
- Introduction to Binary Trees
- Recursive Traversal of Binary Trees
- Iterative Traversal of Binary Trees
- Unified Iterative Method for Binary Trees
- 102.Binary Tree Level Order Traversal
- 226.Invert Binary Tree
- 101.Symmetric Tree
- 104.Maximum Depth of Binary Tree
- 111.Minimum Depth of Binary Tree
- 222.Count Complete Tree Nodes
- 110.Balanced Binary Tree
- 257.Binary Tree Paths
- 404.Sum of Left Leaves
- 513.Find Bottom Left Tree Value
- 112.Path Sum
- 106.Construct Binary Tree from Inorder and Postorder Traversal
- 654.Maximum Binary Tree
- 617.Merge Two Binary Trees
- 700.Search in a Binary Search Tree
- 98.Validate Binary Search Tree
- 530.Minimum Absolute Difference in BST
- 501.Find Mode in Binary Search Tree
- 236.Lowest Common Ancestor of a Binary Tree
- 235.Lowest Common Ancestor of a BST
- 701.Insert into a Binary Search Tree
- 450.Delete Node in a BST
- 669.Trim a Binary Search Tree
- 108.Convert Sorted Array to BST
- 538.Convert BST to Greater Tree
- Binary Tree Summary
- Introduction to Backtracking
- 77.Combinations
- 77.Combinations (Optimized)
- 216.Combination Sum III
- 17.Letter Combinations of a Phone Number
- 39.Combination Sum
- 40.Combination Sum II
- 131.Palindrome Partitioning
- 93.Restore IP Addresses
- 78.Subsets
- 90.Subsets II
- 491.Increasing Subsequences
- 46.Permutations
- 47.Permutations II
- Alternative Deduplication in Backtracking
- 332.Reconstruct Itinerary
- 51.N-Queens
- 37.Sudoku Solver
- Backtracking Summary
- Introduction to Greedy Algorithm
- 455.Assign Cookies
- 376.Wiggle Subsequence
- 53.Maximum Subarray
- 122.Best Time to Buy and Sell Stock II
- 55.Jump Game
- 45.Jump Game II
- 1005.Maximize Sum After K Negations
- 134.Gas Station
- 135.Candy
- 860.Lemonade Change
- 406.Queue Reconstruction by Height
- Queue Reconstruction by Height (Vector Explanation)
- 452.Minimum Number of Arrows to Burst Balloons
- 435.Non-overlapping Intervals
- 763.Partition Labels
- 56.Merge Intervals
- 738.Monotone Increasing Digits
- 968.Binary Tree Cameras
- Greedy Algorithms Summary
- Introduction to Dynamic Programming
- 509.Fibonacci Number
- 70.Climbing Stairs
- 746.Min Cost Climbing Stairs
- 62.Unique Paths
- 63.Unique Paths II
- 343.Integer Break
- 96.Unique Binary Search Trees
- 0-1 Knapsack Theory (Part 1)
- 0-1 Knapsack Theory (Part 2)
- 416.Partition Equal Subset Sum
- 1049.Last Stone Weight II
- 494.Target Sum
- 474.Ones and Zeroes
- Complete Knapsack Theory
- 518.Coin Change II
- 377.Combination Sum IV
- Climbing Stairs (Advanced)
- 322.Coin Change
- 279.Perfect Squares
- 139.Word Break
- Multiple Knapsack Theory
- Knapsack Summary
- 198.House Robber
- 213.House Robber II
- 337.House Robber III
- 121.Best Time to Buy and Sell Stock
- 122.Best Time to Buy and Sell Stock II (DP)
- 123.Best Time to Buy and Sell Stock III
- 188.Best Time to Buy and Sell Stock IV
- 309.Best Time to Buy and Sell Stock with Cooldown
- 714.Best Time to Buy and Sell Stock with Transaction Fee
- Stock Problems Summary
- 300.Longest Increasing Subsequence
- 674.Longest Continuous Increasing Subsequence
- 718.Maximum Length of Repeated Subarray
- 1143.Longest Common Subsequence
- 1035.Uncrossed Lines
- 53.Maximum Subarray (DP)
- 392.Is Subsequence
- 115.Distinct Subsequences
- 583.Delete Operation for Two Strings
- 72.Edit Distance
- Edit Distance Summary
- 647.Palindromic Substrings
- 516.Longest Palindromic Subsequence
- Dynamic Programming Summary