LeetCode Questions List
LeetCode Questions List
This page contains a comprehensive list of all LeetCode problems solved in this blog, organized by difficulty level, category, and solution approach.
Summary Statistics
- Total Problems: 177
- Easy: 29 problems
- Medium: 130 problems
- Hard: 20 problems
All LeetCode Problems
| Problem | Title | Difficulty | Category | Solution Approach | Date Added |
|---|---|---|---|---|---|
| 2 | Add Two Numbers | Medium | Linked List, Math | Recursion, Carry Propagation | 2025-11-18 |
| 3 | Longest Substring Without Repeating Characters | Medium | String, Sliding Window | Hash Map, Two Pointers | 2025-10-09 |
| 18 | 4Sum | Medium | Array, Two Pointers | Two Pointers, Sorting | 2025-11-04 |
| 20 | Valid Parentheses | Easy | String, Stack | Stack, Hash Map | 2025-11-04 |
| 23 | Swap Nodes in Pairs | Medium | Linked List | Recursion, Iteration | 2025-09-24 |
| 25 | Reverse Nodes in k-Group | Hard | Linked List | Recursion, Iteration | 2025-09-24 |
| 27 | Remove Element | Easy | Array, Two Pointers | Two Pointers, In-Place | 2026-01-26 |
| 32 | Longest Valid Parentheses | Hard | String, Dynamic Programming | DP, Two-Pass Greedy | 2025-11-24 |
| 33 | Search in Rotated Sorted Array | Medium | Array, Binary Search | Binary Search | 2025-09-23 |
| 325 | Maximum Size Subarray Sum Equals k | Medium | Array, Hash Table, Prefix Sum | Prefix Sum, Hash Map | 2026-02-01 |
| 45 | Jump Game II | Medium | Array, Greedy | Greedy BFS, Level Traversal | 2025-11-18 |
| 46 | Permutations | Medium | Backtracking, Recursion | Backtracking, STL | 2025-10-21 |
| 47 | Permutations II | Medium | Backtracking, Recursion, Duplicates | Backtracking, STL | 2025-10-21 |
| 48 | Rotate Image | Medium | Array, Matrix | Matrix Rotation | 2025-09-24 |
| 49 | Group Anagrams | Medium | String, Hash Table | Character Counting, Hash Map | 2025-11-18 |
| 50 | Pow(x, n) | Medium | Math, Recursion | Fast Exponentiation | 2025-09-25 |
| 54 | Spiral Matrix | Medium | Array, Matrix | Simulation | 2025-09-25 |
| 56 | Merge Intervals | Medium | Array, Sorting, Intervals | Sort and Merge | 2025-11-24 |
| 62 | Unique Paths | Medium | Math, Dynamic Programming | DP, Combinatorics | 2025-09-24 |
| 63 | Unique Paths II | Medium | Array, Dynamic Programming | DP, Space Optimization | 2026-01-21 |
| 67 | Add Binary | Easy | String, Math, Bit Manipulation | Two Pointers, Carry Propagation | 2025-12-11 |
| 75 | Sort Colors | Medium | Array, Two Pointers, Sorting | Dutch National Flag, Two Pointers | 2025-12-02 |
| 346 | Moving Average from Data Stream | Easy | Queue, Sliding Window, Design | Queue, Running Sum | 2025-12-14 |
| 77 | Combinations | Medium | Backtracking, Recursion | Backtracking, DFS | 2025-10-20 |
| 84 | Largest Rectangle in Histogram | Hard | Stack, Monotonic Stack | Monotonic Stack | 2025-10-21 |
| 89 | Gray Code | Medium | Math, Bit Manipulation | Bit Manipulation | 2025-09-25 |
| 96 | Unique Binary Search Trees | Medium | Math, Dynamic Programming | DP, Catalan Numbers | 2025-10-03 |
| 129 | Sum Root to Leaf Numbers | Medium | Tree, DFS | DFS, Path Accumulation | 2025-11-24 |
| 131 | Palindrome Partitioning | Medium | Backtracking | Backtracking, DFS | 2025-09-30 |
| 133 | Clone Graph | Medium | Graph, DFS, BFS | DFS, BFS, Deep Copy | 2025-10-20 |
| 146 | LRU Cache | Medium | Design, Data Structures | Hash Map, Doubly Linked List | 2025-12-02 |
| 150 | Evaluate Reverse Polish Notation | Medium | Stack | Stack | 2025-09-24 |
| 198 | House Robber | Medium | Dynamic Programming | DP, Pick or Skip | 2025-11-18 |
| 213 | House Robber II | Medium | Array, Dynamic Programming | DP, Circular Array | 2026-01-25 |
| 200 | Number of Islands | Medium | DFS, Graph, Matrix | DFS, Connected Components | 2025-11-20 |
| 203 | Remove Linked List Elements | Easy | Linked List | Two Pointers, Dummy Node | 2025-11-18 |
| 209 | Minimum Size Subarray Sum | Medium | Array, Sliding Window, Binary Search | Sliding Window, Prefix Sum | 2026-01-26 |
| 213 | House Robber II | Medium | Array, Dynamic Programming | DP, Circular Array | 2026-01-25 |
| 238 | Product of Array Except Self | Medium | Array, Prefix Sum | Left/Right Products | 2026-01-27 |
| 560 | Subarray Sum Equals K | Medium | Array, Hash Table, Prefix Sum | Prefix Sum, Hash Map | 2026-02-01 |
| 327 | Count of Range Sum | Hard | Array, Divide and Conquer | Merge Sort, Segment Tree, Prefix Sum | 2026-01-20 |
| 862 | Shortest Subarray with Sum at Least K | Hard | Array, Sliding Window, Deque | Monotonic Deque, Prefix Sum | 2026-01-26 |
| 207 | Course Schedule | Medium | Graph, Topological Sort | Topological Sort, Cycle Detection | 2025-10-21 |
| 208 | Implement Trie (Prefix Tree) | Medium | String, Design, Trie | Trie, Prefix Tree, Data Structure | 2026-01-18 |
| 2080 | Range Frequency Queries | Medium | Array, Hash Map, Binary Search, Design | Hash Map, Binary Search | 2026-01-28 |
| 211 | Design Add and Search Words Data Structure | Medium | String, Design, Trie | Trie, Wildcard Search, DFS | 2026-01-19 |
| 2185 | Counting Words With a Given Prefix | Easy | String, Array | Prefix Matching, Simulation | 2026-01-19 |
| 218 | The Skyline Problem | Hard | Array, Sweep Line | Sweep Line, Priority Queue | 2025-10-05 |
| 224 | Basic Calculator | Medium | String, Stack, Math | Stack, Expression Evaluation | 2025-11-13 |
| 227 | Basic Calculator II | Medium | String, Stack, Math | Stack, Expression Evaluation | 2025-11-13 |
| 239 | Sliding Window Maximum | Hard | Array, Sliding Window, Deque | Monotonic Deque | 2025-11-04 |
| 240 | Search a 2D Matrix II | Medium | Array, Binary Search | Binary Search, Divide & Conquer | 2025-10-07 |
| 253 | Meeting Rooms II | Medium | Array, Sorting, Priority Queue | Priority Queue, Two Pointers, Bucket Sort | 2025-12-11 |
| 277 | Find the Celebrity | Medium | Graph, Two Pointers | Two-Pass, Candidate Elimination | 2025-11-24 |
| 281 | Zigzag Iterator | Medium | Design, Iterator | Two Pointers, Queue | 2025-12-10 |
| 279 | Perfect Squares | Medium | Math, Dynamic Programming, BFS | Legendre’s Theorem, DP, BFS | 2025-12-14 |
| 286 | Walls and Gates | Medium | Array, Matrix, BFS | Multi-source BFS | 2025-12-14 |
| 300 | Longest Increasing Subsequence | Medium | Array, Dynamic Programming | DP, Binary Search | 2025-10-17 |
| 354 | Russian Doll Envelopes | Medium | Array, Dynamic Programming, Binary Search | LIS, Binary Search, Sorting | 2026-01-25 |
| 314 | Binary Tree Vertical Order Traversal | Medium | Tree, BFS | BFS, Vertical Order | 2025-10-21 |
| 316 | Remove Duplicate Letters | Medium | String, Stack | Monotonic Stack, Greedy | 2025-10-17 |
| 317 | Shortest Distance from All Buildings | Hard | BFS, Matrix | BFS, Multi-source | 2025-09-24 |
| 322 | Coin Change | Medium | Dynamic Programming, DP | DP, Unbounded Knapsack | 2025-10-21 |
| 324 | Wiggle Sort II | Medium | Array, Sorting | Sorting, 3-way Partition | 2025-11-04 |
| 344 | Reverse String | Easy | String, Two Pointers | Two Pointers | 2025-10-29 |
| 347 | Top K Frequent Elements | Medium | Array, Hash Table, Heap | Bucket Sort, Quickselect, Heap | 2025-10-21 |
| 348 | Design Tic-Tac-Toe | Medium | Design, Array | Counter Optimization, State Tracking | 2025-10-21 |
| 349 | Intersection of Two Arrays | Easy | Array, Hash Table | Hash Set, Duplicate Removal | 2026-01-19 |
| 394 | Decode String | Medium | String, Stack | Stack, String Processing | 2025-10-19 |
| 398 | Random Pick Index | Medium | Hash Table, Reservoir Sampling | Hash Map, Preprocessing | 2025-11-24 |
| 399 | Evaluate Division | Medium | Disjoint Set, Graph, DFS | Weighted Union-Find, Graph DFS | 2025-12-17 |
| 406 | Queue Reconstruction by Height | Medium | Array, Greedy | Greedy, Sorting | 2025-10-19 |
| 408 | Valid Word Abbreviation | Easy | String, Two Pointers | Position Tracking, Parsing | 2025-11-24 |
| 409 | Longest Palindrome | Easy | String, Hash Table, Greedy | Bit Manipulation, Frequency Counting | 2026-01-19 |
| 417 | Pacific Atlantic Water Flow | Medium | Array, DFS | DFS, BFS | 2025-10-19 |
| 419 | Battleships in a Board | Medium | Array, Matrix | Top-Left Corner, DFS | 2025-10-21 |
| 426 | Convert Binary Search Tree to Sorted Doubly Linked List | Medium | Tree, Linked List, DFS | Inorder Traversal, Recursion | 2025-10-22 |
| 437 | Path Sum III | Medium | Tree, DFS | DFS, Recursion | 2025-10-19 |
| 480 | Sliding Window Median | Hard | Array, Sliding Window, Heap | Two Heaps, Multiset | 2025-11-04 |
| 485 | Max Consecutive Ones | Easy | Array | Counter | 2025-11-04 |
| 489 | Robot Room Cleaner | Hard | DFS, Backtracking | DFS, Backtracking, Robot Navigation | 2025-11-24 |
| 494 | Target Sum | Medium | Array, Dynamic Programming | DP, Subset Sum | 2025-10-15 |
| 498 | Diagonal Traverse | Medium | Array, Matrix | Simulation, Direction Toggle | 2026-01-20 |
| 509 | Fibonacci Number | Easy | Dynamic Programming, Math | DP, Bottom-Up | 2025-11-18 |
| 525 | Contiguous Array | Medium | Array, Hash Table | Prefix Sum, Hash Map | 2025-11-04 |
| 528 | Random Pick with Weight | Medium | Design, Binary Search, Prefix Sum | Prefix Sum, Binary Search | 2025-11-24 |
| 593 | Valid Square | Medium | Math, Geometry | Distance Calculation, Set | 2025-12-02 |
| 636 | Exclusive Time of Functions | Medium | Stack, Parsing | Stack, Log Parsing | 2025-10-27 |
| 645 | Set Mismatch | Easy | Array, Hash Table, Math | Mathematical Approach, Negative Marking | 2026-01-19 |
| 647 | Palindromic Substrings | Medium | String, Two Pointers | Expand Around Centers | 2025-11-24 |
| 387 | First Unique Character in a String | Easy | String, Hash Table | Bit Manipulation, Frequency Counting | 2026-01-19 |
| 708 | Insert into a Sorted Circular Linked List | Medium | Linked List, Circular | Two Pointers, Iteration | 2025-10-27 |
| 717 | 1-bit and 2-bit Characters | Easy | Array, Greedy | Greedy | 2025-10-29 |
| 772 | Basic Calculator III | Hard | String, Stack, Math | Stack, Recursion, Expression Evaluation | 2025-11-13 |
| 850 | Rectangle Area II | Hard | Geometry, Sweep Line, Segment Tree | Sweep Line, Coordinate Compression, Segment Tree | 2025-12-16 |
| 863 | All Nodes Distance K in Binary Tree | Medium | Tree, DFS, BFS | Graph Conversion, DFS, Parent Pointer | 2025-10-25 |
| 503 | Next Greater Element II | Medium | Array, Stack | Monotonic Stack | 2025-10-17 |
| 545 | Boundary of Binary Tree | Medium | Tree, DFS | DFS, Boundary Traversal | 2025-10-21 |
| 547 | Number of Provinces | Medium | Disjoint Set, DFS, Graph | Union-Find, Connected Components | 2025-12-18 |
| 648 | Replace Words | Medium | String, Trie | Trie, Hash Set | 2025-10-17 |
| 690 | Employee Importance | Medium | DFS, BFS, Hash Table | DFS, Hash Map | 2025-12-16 |
| 695 | Max Area of Island | Medium | DFS, Graph, Matrix | DFS, Connected Components | 2025-10-21 |
| 752 | Open the Lock | Medium | BFS, Shortest Path | BFS, State Space | 2025-10-21 |
| 794 | Valid Tic-Tac-Toe State | Medium | Array, String | Simulation, Validation | 2025-09-24 |
| 912 | Sort an Array | Medium | Array, Sorting | Merge Sort, Heap Sort, Counting Sort | 2025-10-06 |
| 921 | Minimum Add to Make Parentheses Valid | Medium | String, Stack, Greedy | Greedy, Counter | 2025-11-04 |
| 938 | Range Sum of BST | Easy | Tree, BST, DFS | DFS, BST Pruning | 2025-11-24 |
| 969 | Pancake Sorting | Medium | Array, Sorting, Greedy | Greedy, Two-Step Flip | 2025-11-18 |
| 973 | K Closest Points to Origin | Medium | Array, Sorting, Heap | Sorting, Heap, Quickselect | 2025-10-21 |
| 974 | Subarray Sums Divisible by K | Medium | Array, Hash Table, Prefix Sum | Prefix Modulo, Array | 2026-02-02 |
| 981 | Time Based Key-Value Store | Medium | Hash Table, Binary Search, Design | Binary Search, Hash Map, Lower Bound | 2026-01-30 |
| 983 | Minimum Cost For Tickets | Medium | Dynamic Programming | DP, Bottom-Up | 2025-11-24 |
| 990 | Satisfiability of Equality Equations | Medium | Disjoint Set, Graph | Union Find, DFS | 2025-10-04 |
| 994 | Rotting Oranges | Medium | Array, Matrix, BFS | Multi-source BFS, Level Tracking | 2025-12-13 |
| 1094 | Car Pooling | Medium | Array, Sorting, Simulation | Bucket Sort, Event Processing | 2025-10-22 |
| 1124 | Longest Well-Performing Interval | Medium | Array, Hash Table | Hash Map, Prefix Sum | 2025-10-16 |
| 1206 | Design Skiplist | Hard | Data Structures, Design | Skiplist, Probabilistic Data Structure | 2025-12-03 |
| 1207 | Unique Number of Occurrences | Easy | Array, Hash Table | Hash Map, Hash Set | 2025-10-20 |
| 1209 | Remove All Adjacent Duplicates in String II | Medium | String, Stack | Stack, Count Tracking | 2025-11-24 |
| 1242 | Web Crawler Multithreaded | Medium | Concurrency, Multithreading | Multithreading, BFS | 2025-09-24 |
| 1249 | Minimum Remove to Make Valid Parentheses | Medium | String, Stack | Stack Validation, Parentheses | 2025-10-22 |
| 1443 | Minimum Time to Collect All Apples in a Tree | Medium | Tree, DFS, BFS | DFS, Tree Traversal | 2025-10-21 |
| 1570 | Dot Product of Two Sparse Vectors | Medium | Hash Map, Data Structure | Hash Map, Optimization | 2025-10-19 |
| 1650 | Lowest Common Ancestor of a Binary Tree III | Medium | Tree, Binary Tree, LCA | Two Pointers, Tree Traversal | 2025-10-21 |
| 1762 | Buildings With an Ocean View | Medium | Array, Stack | Monotonic Stack, Greedy | 2025-11-24 |
| 1856 | Maximum Sum of Minimum Product | Medium | Array, Stack | Monotonic Stack, Prefix Sum | 2025-10-17 |
| 1865 | Finding Pairs With a Certain Sum | Medium | Hash Map, Data Structure | Hash Map, Count Tracking | 2025-10-19 |
| 1868 | Product of Two Run-Length Encoded Arrays | Medium | Run-Length Encoding, Two Pointers | Two Pointers, Array Processing | 2025-10-21 |
| 2043 | Simple Bank System | Medium | Design, Data Structure | Data Structure Design | 2025-10-21 |
| 2466 | Count Ways To Build Good Strings | Medium | Dynamic Programming | DP, Bottom-up, Top-down | 2025-10-16 |
| 2799 | Count Complete Subarrays in an Array | Medium | Array, Sliding Window | Sliding Window, Hash Map | 2025-10-17 |
| 5 | Longest Palindromic Substring | Medium | String, Two Pointers | Expand Around Center, Manacher’s Algorithm | 2026-01-08 |
| 22 | Generate Parentheses | Medium | Backtracking, String | Backtracking, DFS | 2026-01-12 |
| 51 | N-Queens | Hard | Backtracking, Recursion | Backtracking, Constraint Satisfaction | 2026-01-12 |
| 64 | Minimum Path Sum | Medium | Array, Dynamic Programming | 2D DP, Grid Path | 2026-01-10 |
| 79 | Word Search | Medium | Array, Backtracking, Matrix | DFS, Backtracking | 2026-01-12 |
| 102 | Binary Tree Level Order Traversal | Medium | Tree, BFS | BFS, Level Order | 2026-01-07 |
| 103 | Binary Tree Zigzag Level Order Traversal | Medium | Tree, BFS | BFS, Deque, Direction Toggle | 2026-01-06 |
| 100 | Same Tree | Easy | Tree, DFS | DFS, Recursion | 2026-01-19 |
| 101 | Symmetric Tree | Easy | Tree, DFS | DFS, Recursion, Mirror Comparison | 2026-01-19 |
| 104 | Maximum Depth of Binary Tree | Easy | Tree, DFS | DFS, Recursion | 2026-01-19 |
| 111 | Minimum Depth of Binary Tree | Easy | Tree, DFS | DFS, Recursion, Single Child Handling | 2026-01-19 |
| 112 | Path Sum | Easy | Tree, DFS | DFS, Backtracking | 2026-01-19 |
| 226 | Invert Binary Tree | Easy | Tree, DFS | DFS, Recursion | 2026-01-19 |
| 236 | Lowest Common Ancestor of a Binary Tree | Medium | Tree, DFS | DFS, Post-order, LCA | 2026-01-19 |
| 215 | Kth Largest Element in an Array | Medium | Array, Heap, QuickSelect | Min Heap, QuickSelect | 2026-01-05 |
| 269 | Alien Dictionary | Hard | Graph, Topological Sort, String | Topological Sort, BFS | 2026-01-14 |
| 310 | Minimum Height Trees | Medium | Graph, Tree, Topological Sort | Peeling Leaves, BFS, DFS | 2026-01-14 |
| 323 | Number of Connected Components in an Undirected Graph | Medium | Graph, Union-Find, BFS, DFS | BFS, DFS, Union-Find | 2026-01-07 |
| 327 | Count of Range Sum | Hard | Array, Divide and Conquer | Merge Sort, Segment Tree, Prefix Sum | 2026-01-20 |
| 429 | N-ary Tree Level Order Traversal | Medium | Tree, BFS | BFS, Level Order | 2026-01-07 |
| 673 | Number of Longest Increasing Subsequence | Medium | Array, Dynamic Programming | DP with Count Tracking, Binary Search | 2026-01-09 |
| 692 | Top K Frequent Words | Medium | Hash Table, Heap, Sorting | Hash Map, Custom Sorting | 2026-01-08 |
| 721 | Accounts Merge | Medium | Union-Find, Graph | Union-Find, Disjoint Set | 2026-01-11 |
| 844 | Backspace String Compare | Easy | String, Two Pointers | Two Pointers, Backwards | 2026-01-12 |
| 993 | Cousins in Binary Tree | Easy | Tree, BFS | BFS, Parent Tracking | 2026-01-07 |
| 1340 | Jump Game V | Hard | Array, Dynamic Programming | DFS with Memoization | 2026-01-10 |
| 1624 | Largest Substring Between Two Equal Characters | Easy | String, Hash Table | Hash Map, Character Tracking | 2026-01-19 |
| 1670 | Design Front Middle Back Queue | Medium | Design, Deque, Data Structure | Two Deques, Rebalancing | 2026-01-13 |
| 1701 | Average Waiting Time | Medium | Array, Simulation | Simulation, Greedy | 2026-01-19 |
| 1233 | Remove Sub-Folders from the Filesystem | Medium | Array, String, Trie, Sorting | Trie, Prefix Matching | 2026-01-23 |
| 1801 | Number of Orders in the Backlog | Medium | Array, Heap, Priority Queue | Priority Queue, Greedy Matching | 2026-01-22 |
| LCR 113 | Course Schedule II (CN) | Medium | Graph, Topological Sort, DFS | DFS, Three-State Coloring | 2026-01-14 |
| 802 | Find Eventual Safe States | Medium | Graph, DFS, Cycle Detection | DFS, Three-State Coloring | 2026-01-15 |
| 305 | Number of Islands II | Hard | Array, Union-Find, Graph | Union-Find, Incremental Connectivity | 2026-01-16 |
| 307 | Range Sum Query - Mutable | Medium | Array, Segment Tree, Binary Indexed Tree | Segment Tree, Range Sum Query | 2026-01-16 |
| 315 | Count of Smaller Numbers After Self | Hard | Array, Binary Search, Fenwick Tree | Fenwick Tree, Coordinate Compression | 2026-01-17 |
| 3477 | Number of Unplaced Fruits | Medium | Array, Greedy, Segment Tree | Segment Tree, Leftmost Query | 2026-01-16 |
| 729 | My Calendar I | Medium | Array, Binary Search, Design | Ordered Set, Interval Overlap | 2026-01-17 |
| 732 | My Calendar III | Hard | Array, Binary Search, Design, Segment Tree | Sweep Line, Segment Tree, Maximum Overlap | 2026-01-18 |
| 34 | Find First and Last Position of Element in Sorted Array | Medium | Array, Binary Search | Lower Bound, Upper Bound | 2026-01-30 |
| 162 | Find Peak Element | Medium | Array, Binary Search | Binary Search | 2026-01-30 |
| 739 | Daily Temperatures | Medium | Array, Stack, Monotonic Stack | Monotonic Stack, Right-to-Left Jumping | 2026-01-29 |
| 3110 | Score of a String | Easy | String, Array | Simulation, ASCII | 2026-01-18 |
Problems by Difficulty
Easy (28 problems)
- 20. Valid Parentheses
- 27. Remove Element - Two Pointers, In-Place
- 35. Search Insert Position - Lower Bound
- 203. Remove Linked List Elements
- 344. Reverse String
- 346. Moving Average from Data Stream
- 408. Valid Word Abbreviation
- 409. Longest Palindrome
- 485. Max Consecutive Ones
- 509. Fibonacci Number
- 717. 1-bit and 2-bit Characters
- 844. Backspace String Compare
- 938. Range Sum of BST
- 993. Cousins in Binary Tree
- 1047. Remove All Adjacent Duplicates In String
- 1207. Unique Number of Occurrences
- 100. Same Tree
- 101. Symmetric Tree
- 104. Maximum Depth of Binary Tree
- 111. Minimum Depth of Binary Tree
- 112. Path Sum
- 226. Invert Binary Tree
- 349. Intersection of Two Arrays
- 387. First Unique Character in a String
- 645. Set Mismatch
- 1624. Largest Substring Between Two Equal Characters
- 2185. Counting Words With a Given Prefix
- 3110. Score of a String
Medium (130 problems)
- 2. Add Two Numbers
- 3. Longest Substring Without Repeating Characters
- 56. Merge Intervals
- 18. 4Sum
- 45. Jump Game II
- 23. Swap Nodes in Pairs
- 33. Search in Rotated Sorted Array
- 34. Find First and Last Position of Element in Sorted Array
- 46. Permutations
- 47. Permutations II
- 48. Rotate Image
- 49. Group Anagrams
- 224. Basic Calculator
- 227. Basic Calculator II
- 324. Wiggle Sort II
- 394. Decode String
- 398. Random Pick Index
- 50. Pow(x, n)
- 54. Spiral Matrix
- 62. Unique Paths
- 63. Unique Paths II
- 695. Max Area of Island
- 75. Sort Colors
- 77. Combinations
- 89. Gray Code
- 96. Unique Binary Search Trees
- 129. Sum Root to Leaf Numbers
- 131. Palindrome Partitioning
- 146. LRU Cache
- 208. Implement Trie (Prefix Tree)
- 622. Design Circular Queue - Circular Queue, Array, Linked List
- 211. Design Add and Search Words Data Structure
- 1233. Remove Sub-Folders from the Filesystem - Trie, Prefix Matching, Sorting
- 224. Basic Calculator
- 1443. Minimum Time to Collect All Apples in a Tree
- 1650. Lowest Common Ancestor of a Binary Tree III
- 1762. Buildings With an Ocean View
- 150. Evaluate Reverse Polish Notation
- 198. House Robber
- 213. House Robber II - DP, Circular Array
- 200. Number of Islands
- 209. Minimum Size Subarray Sum - Sliding Window, Prefix Sum
- 238. Product of Array Except Self - Left/Right Products
- 325. Maximum Size Subarray Sum Equals k - Prefix Sum, Hash Map
- 560. Subarray Sum Equals K - Prefix Sum, Hash Map
- 2080. Range Frequency Queries - Hash Map, Binary Search
- 162. Find Peak Element
- 240. Search a 2D Matrix II
- 862. Shortest Subarray with Sum at Least K - Monotonic Deque, Prefix Sum
- 253. Meeting Rooms II
- 277. Find the Celebrity
- 279. Perfect Squares
- 281. Zigzag Iterator
- 286. Walls and Gates
- 300. Longest Increasing Subsequence
- 354. Russian Doll Envelopes - LIS, Binary Search, Sorting
- 316. Remove Duplicate Letters
- 399. Evaluate Division
- 406. Queue Reconstruction by Height
- 417. Pacific Atlantic Water Flow
- 437. Path Sum III
- 494. Target Sum
- 498. Diagonal Traverse
- 503. Next Greater Element II
- 525. Contiguous Array
- 528. Random Pick with Weight
- 547. Number of Provinces
- 593. Valid Square
- 636. Exclusive Time of Functions
- 647. Palindromic Substrings
- 648. Replace Words
- 690. Employee Importance
- 1209. Remove All Adjacent Duplicates in String II
- 708. Insert into a Sorted Circular Linked List
- 863. All Nodes Distance K in Binary Tree
- 912. Sort an Array
- 921. Minimum Add to Make Parentheses Valid
- 969. Pancake Sorting
- 974. Subarray Sums Divisible by K
- 981. Time Based Key-Value Store
- 990. Satisfiability of Equality Equations
- 994. Rotting Oranges
- 1124. Longest Well-Performing Interval
- 1242. Web Crawler Multithreaded
- 1570. Dot Product of Two Sparse Vectors
- 1856. Maximum Sum of Minimum Product
- 1865. Finding Pairs With a Certain Sum
- 1868. Product of Two Run-Length Encoded Arrays
- 2043. Simple Bank System
- 2466. Count Ways To Build Good Strings
- 2799. Count Complete Subarrays in an Array
- 5. Longest Palindromic Substring
- 22. Generate Parentheses
- 64. Minimum Path Sum
- 79. Word Search
- 102. Binary Tree Level Order Traversal
- 103. Binary Tree Zigzag Level Order Traversal
- 236. Lowest Common Ancestor of a Binary Tree
- 215. Kth Largest Element in an Array
- 310. Minimum Height Trees
- 323. Number of Connected Components in an Undirected Graph
- 429. N-ary Tree Level Order Traversal
- 673. Number of Longest Increasing Subsequence
- 692. Top K Frequent Words
- 721. Accounts Merge
- 794. Valid Tic-Tac-Toe State
- 973. K Closest Points to Origin
- 983. Minimum Cost For Tickets
- 305. Number of Islands II
- 307. Range Sum Query - Mutable
- 315. Count of Smaller Numbers After Self
- 3477. Number of Unplaced Fruits
- 729. My Calendar I
- 732. My Calendar III
- 739. Daily Temperatures
- 802. Find Eventual Safe States
- 1670. Design Front Middle Back Queue
- LCR 113. Course Schedule II (CN)
- 3477. Number of Unplaced Fruits
Hard (20 problems)
- 25. Reverse Nodes in k-Group
- 44. Wildcard Matching
- 32. Longest Valid Parentheses
- 51. N-Queens
- 84. Largest Rectangle in Histogram
- 218. The Skyline Problem
- 239. Sliding Window Maximum
- 269. Alien Dictionary
- 305. Number of Islands II
- 327. Count of Range Sum
- 315. Count of Smaller Numbers After Self
- 862. Shortest Subarray with Sum at Least K - Monotonic Deque, Prefix Sum
- 1136. Parallel Courses - DFS with Memoization, Longest Path
- 317. Shortest Distance from All Buildings
- 732. My Calendar III
- 480. Sliding Window Median
- 489. Robot Room Cleaner
- 772. Basic Calculator III
- 850. Rectangle Area II
- 1206. Design Skiplist
- 1340. Jump Game V
Problems by Category
Array & Matrix
- 5. Longest Palindromic Substring - Expand Around Center, Manacher’s Algorithm
- 18. 4Sum - Two Pointers, Sorting
- 27. Remove Element - Two Pointers, In-Place
- 33. Search in Rotated Sorted Array - Binary Search
- 45. Jump Game II - Greedy BFS, Level Traversal
- 238. Product of Array Except Self - Left/Right Products
- 48. Rotate Image - Matrix Rotation
- 209. Minimum Size Subarray Sum - Sliding Window, Prefix Sum
- 54. Spiral Matrix - Simulation
- 56. Merge Intervals - Sort and Merge
- 62. Unique Paths - DP, Combinatorics
- 63. Unique Paths II - DP, Space Optimization
- 64. Minimum Path Sum - 2D DP, Grid Path
- 79. Word Search - DFS, Backtracking
- 200. Number of Islands - DFS, Connected Components
- 305. Number of Islands II - Union-Find, Incremental Connectivity
- 307. Range Sum Query - Mutable - Segment Tree, Range Sum Query
- 315. Count of Smaller Numbers After Self - Fenwick Tree, Coordinate Compression
- 3477. Number of Unplaced Fruits - Segment Tree, Greedy
- 215. Kth Largest Element in an Array - Min Heap, QuickSelect
- 34. Find First and Last Position of Element in Sorted Array - Lower Bound, Upper Bound
- 35. Search Insert Position - Lower Bound
- 162. Find Peak Element - Binary Search
- 240. Search a 2D Matrix II - Binary Search, Divide & Conquer
- 300. Longest Increasing Subsequence - DP, Binary Search
- 354. Russian Doll Envelopes - LIS, Binary Search, Sorting
- 323. Number of Connected Components in an Undirected Graph - BFS, DFS, Union-Find
- 324. Wiggle Sort II - Sorting, 3-way Partition
- 327. Count of Range Sum - Merge Sort, Segment Tree, Prefix Sum
- 498. Diagonal Traverse - Simulation, Direction Toggle
- 347. Top K Frequent Elements - Bucket Sort, Quickselect, Heap
- 406. Queue Reconstruction by Height - Greedy, Sorting
- 417. Pacific Atlantic Water Flow - DFS, BFS
- 419. Battleships in a Board - Top-Left Corner, DFS
- 485. Max Consecutive Ones - Counter
- 494. Target Sum - DP, Subset Sum
- 498. Diagonal Traverse - Simulation, Direction Toggle
- 349. Intersection of Two Arrays - Hash Set, Duplicate Removal
- 645. Set Mismatch - Mathematical Approach, Negative Marking
- 503. Next Greater Element II - Monotonic Stack
- 525. Contiguous Array - Prefix Sum, Hash Map
- 673. Number of Longest Increasing Subsequence - DP with Count Tracking, Binary Search
- 692. Top K Frequent Words - Hash Map, Custom Sorting
- 717. 1-bit and 2-bit Characters - Greedy
- 721. Accounts Merge - Union-Find, Disjoint Set
- 912. Sort an Array - Merge Sort, Heap Sort, Counting Sort
- 969. Pancake Sorting - Greedy, Two-Step Flip
- 973. K Closest Points to Origin - Sorting, Heap, Quickselect
- 1094. Car Pooling - Bucket Sort, Event Processing
- 1124. Longest Well-Performing Interval - Hash Map, Prefix Sum
- 1207. Unique Number of Occurrences - Hash Map, Hash Set
- 1340. Jump Game V - DFS with Memoization
- 1670. Design Front Middle Back Queue - Two Deques, Rebalancing
- 622. Design Circular Queue - Circular Queue, Array, Linked List
- 1233. Remove Sub-Folders from the Filesystem - Trie, Prefix Matching, Sorting
- 1701. Average Waiting Time - Simulation, Greedy
- 1801. Number of Orders in the Backlog - Priority Queue, Greedy Matching
- 1762. Buildings With an Ocean View - Monotonic Stack, Greedy
- 1856. Maximum Sum of Minimum Product - Monotonic Stack, Prefix Sum
- 2799. Count Complete Subarrays in an Array - Sliding Window, Hash Map
- 695. Max Area of Island - DFS, Connected Components
String Processing
- 3. Longest Substring Without Repeating Characters - Hash Map, Two Pointers
- 5. Longest Palindromic Substring - Expand Around Center, Manacher’s Algorithm
- 20. Valid Parentheses - Stack, Hash Map
- 22. Generate Parentheses - Backtracking, DFS
- 32. Longest Valid Parentheses - DP, Two-Pass Greedy
- 49. Group Anagrams - Character Counting, Hash Map
- 79. Word Search - DFS, Backtracking
- 269. Alien Dictionary - Topological Sort, BFS
- 344. Reverse String - Two Pointers
- 316. Remove Duplicate Letters - Monotonic Stack, Greedy
- 3110. Score of a String - Simulation, ASCII
- 387. First Unique Character in a String - Bit Manipulation, Frequency Counting
- 394. Decode String - Stack, String Processing
- 408. Valid Word Abbreviation - Position Tracking, Parsing
- 409. Longest Palindrome - Bit Manipulation, Frequency Counting
- 647. Palindromic Substrings - Expand Around Centers, Two Pointers
- 1233. Remove Sub-Folders from the Filesystem - Trie, Prefix Matching, Sorting
- 1624. Largest Substring Between Two Equal Characters - Hash Map, Character Tracking
- 208. Implement Trie (Prefix Tree) - Trie, Prefix Tree, Data Structure
- 211. Design Add and Search Words Data Structure - Trie, Wildcard Search, DFS
- 2185. Counting Words With a Given Prefix - Prefix Matching, Simulation
- 648. Replace Words - Trie, Hash Set
- 692. Top K Frequent Words - Hash Map, Custom Sorting
- 794. Valid Tic-Tac-Toe State - Simulation, Validation
- 844. Backspace String Compare - Two Pointers, Backwards
- 921. Minimum Add to Make Parentheses Valid - Greedy, Counter
- 1249. Minimum Remove to Make Valid Parentheses - Stack Validation, Parentheses
Linked List
- 2. Add Two Numbers - Recursion, Carry Propagation
- 23. Swap Nodes in Pairs - Recursion, Iteration
- 25. Reverse Nodes in k-Group - Recursion, Iteration
- 203. Remove Linked List Elements - Two Pointers, Dummy Node
- 708. Insert into a Sorted Circular Linked List - Two Pointers, Circular List
Tree & DFS
- 100. Same Tree - DFS, Recursion
- 101. Symmetric Tree - DFS, Recursion, Mirror Comparison
- 104. Maximum Depth of Binary Tree - DFS, Recursion
- 111. Minimum Depth of Binary Tree - DFS, Recursion, Single Child Handling
- 112. Path Sum - DFS, Backtracking
- 226. Invert Binary Tree - DFS, Recursion
- 102. Binary Tree Level Order Traversal - BFS, Level Order
- 103. Binary Tree Zigzag Level Order Traversal - BFS, Deque, Direction Toggle
- 236. Lowest Common Ancestor of a Binary Tree - DFS, Post-order, LCA
- 129. Sum Root to Leaf Numbers - DFS, Path Accumulation
- 310. Minimum Height Trees - Peeling Leaves, BFS, DFS
- 314. Binary Tree Vertical Order Traversal - BFS, Level Order
- 429. N-ary Tree Level Order Traversal - BFS, Level Order
- 426. Convert Binary Search Tree to Sorted Doubly Linked List - Inorder Traversal, Recursion
- 437. Path Sum III - DFS, Recursion
- 545. Boundary of Binary Tree - DFS, Boundary Traversal
- 863. All Nodes Distance K in Binary Tree - Graph Conversion, DFS, Parent Pointer
- 938. Range Sum of BST - DFS, BST Pruning
- 993. Cousins in Binary Tree - BFS, Parent Tracking
- 1443. Minimum Time to Collect All Apples in a Tree - DFS, Tree Traversal
- 1650. Lowest Common Ancestor of a Binary Tree III - Two Pointers, Tree Traversal
Dynamic Programming
- 32. Longest Valid Parentheses - DP, Two-Pass Greedy
- 62. Unique Paths - DP, Combinatorics
- 63. Unique Paths II - DP, Space Optimization
- 64. Minimum Path Sum - 2D DP, Grid Path
- 96. Unique Binary Search Trees - DP, Catalan Numbers
- 198. House Robber - DP, Pick or Skip
- 213. House Robber II - DP, Circular Array
- 300. Longest Increasing Subsequence - DP, Binary Search
- 354. Russian Doll Envelopes - LIS, Binary Search, Sorting
- 494. Target Sum - DP, Subset Sum
- 509. Fibonacci Number - DP, Bottom-Up
- 673. Number of Longest Increasing Subsequence - DP with Count Tracking, Binary Search
- 983. Minimum Cost For Tickets - DP, Bottom-Up
- 1340. Jump Game V - DFS with Memoization
- 2466. Count Ways To Build Good Strings - DP, Bottom-up, Top-down
Backtracking
- 22. Generate Parentheses - Backtracking, DFS
- 46. Permutations - Backtracking, STL
- 47. Permutations II - Backtracking, STL, Duplicates
- 51. N-Queens - Backtracking, Constraint Satisfaction
- 77. Combinations - Backtracking
- 79. Word Search - DFS, Backtracking
- 131. Palindrome Partitioning - Backtracking, DFS
- 489. Robot Room Cleaner - DFS, Backtracking, Robot Navigation
Stack & Queue
- 20. Valid Parentheses - Stack, Hash Map
- 32. Longest Valid Parentheses - DP, Two-Pass Greedy, Stack
- 84. Largest Rectangle in Histogram - Monotonic Stack
- 150. Evaluate Reverse Polish Notation - Stack
- 224. Basic Calculator - Stack, Expression Evaluation
- 227. Basic Calculator II - Stack, Expression Evaluation
- 239. Sliding Window Maximum - Monotonic Deque
- 316. Remove Duplicate Letters - Monotonic Stack, Greedy
- 503. Next Greater Element II - Monotonic Stack
- 480. Sliding Window Median - Two Heaps, Multiset
- 636. Exclusive Time of Functions - Stack, Log Parsing
- 772. Basic Calculator III - Stack, Recursion, Expression Evaluation
- 921. Minimum Add to Make Parentheses Valid - Greedy, Counter
- 1047. Remove All Adjacent Duplicates In String - Stack, Two Pointers
- 1209. Remove All Adjacent Duplicates in String II - Stack, Count Tracking
- 1670. Design Front Middle Back Queue - Two Deques, Rebalancing
- 1762. Buildings With an Ocean View - Monotonic Stack, Greedy
- 1856. Maximum Sum of Minimum Product - Monotonic Stack, Prefix Sum
Graph
- 207. Course Schedule - Topological Sort, Cycle Detection
- 1136. Parallel Courses - DFS with Memoization, Longest Path
- 269. Alien Dictionary - Topological Sort, BFS
- 277. Find the Celebrity - Two-Pass, Candidate Elimination
- 305. Number of Islands II - Union-Find, Incremental Connectivity
- 310. Minimum Height Trees - Peeling Leaves, BFS, DFS
- 323. Number of Connected Components in an Undirected Graph - BFS, DFS, Union-Find
- 317. Shortest Distance from All Buildings - BFS, Multi-source
- 417. Pacific Atlantic Water Flow - DFS, BFS
- 721. Accounts Merge - Union-Find, Disjoint Set
- 802. Find Eventual Safe States - DFS, Three-State Coloring, Cycle Detection
- 863. All Nodes Distance K in Binary Tree - Graph Conversion, DFS, Parent Pointer
- 990. Satisfiability of Equality Equations - Union Find, DFS
- LCR 113. Course Schedule II (CN) - DFS, Three-State Coloring
Data Structure Design
- 146. LRU Cache - Hash Map, Doubly Linked List
- 208. Implement Trie (Prefix Tree) - Trie, Prefix Tree, Data Structure
- 211. Design Add and Search Words Data Structure - Trie, Wildcard Search, DFS
- 348. Design Tic-Tac-Toe - Counter Optimization, State Tracking
- 398. Random Pick Index - Hash Map, Preprocessing
- 528. Random Pick with Weight - Prefix Sum, Binary Search
- 729. My Calendar I - Ordered Set, Interval Overlap
- 732. My Calendar III - Sweep Line, Segment Tree, Maximum Overlap
- 1570. Dot Product of Two Sparse Vectors - Hash Map, Optimization
- 1670. Design Front Middle Back Queue - Two Deques, Rebalancing
- 1865. Finding Pairs With a Certain Sum - Hash Map, Count Tracking
- 2043. Simple Bank System - Data Structure Design
Advanced Algorithms
- 218. The Skyline Problem - Sweep Line, Priority Queue
- 1242. Web Crawler Multithreaded - Multithreading, BFS
Math & Bit Manipulation
- 50. Pow(x, n) - Fast Exponentiation
- 89. Gray Code - Bit Manipulation
Run-Length Encoding
- 1868. Product of Two Run-Length Encoded Arrays - Two Pointers, Array Processing
Solution Approaches Summary
Most Common Approaches
- Dynamic Programming (DP) - 5 problems
- Monotonic Stack - 4 problems
- Binary Search - 4 problems
- Hash Map/Set - 6 problems
- DFS/BFS - 5 problems
- Backtracking - 2 problems
- Sliding Window - 2 problems
- Two Pointers - 2 problems
- Trie - 1 problem
- Disjoint Set - 1 problem
- Sweep Line - 1 problem
- Data Structure Design - 2 problems
Algorithm Patterns
- Array Processing: Sliding window, two pointers, prefix sum
- String Processing: Trie, hash map, monotonic stack
- Graph Traversal: DFS, BFS, Disjoint Set
- Optimization: Dynamic programming, greedy algorithms
- Data Structures: Stack, queue, heap, trie
- Search: Binary search, divide and conquer
Recent Additions
Latest Problems (January 2026)
- 34. Find First and Last Position of Element in Sorted Array - Lower Bound, Upper Bound
- 35. Search Insert Position - Lower Bound
- 162. Find Peak Element - Binary Search
- 5. Longest Palindromic Substring - Expand Around Center, Manacher’s Algorithm
- 22. Generate Parentheses - Backtracking, DFS
- 51. N-Queens - Backtracking, Constraint Satisfaction
- 64. Minimum Path Sum - 2D DP, Grid Path
- 79. Word Search - DFS, Backtracking
- 102. Binary Tree Level Order Traversal - BFS, Level Order
- 103. Binary Tree Zigzag Level Order Traversal - BFS, Deque, Direction Toggle
- 215. Kth Largest Element in an Array - Min Heap, QuickSelect
- 269. Alien Dictionary - Topological Sort, BFS
- 310. Minimum Height Trees - Peeling Leaves, BFS, DFS
- 323. Number of Connected Components in an Undirected Graph - BFS, DFS, Union-Find
- 429. N-ary Tree Level Order Traversal - BFS, Level Order
- 673. Number of Longest Increasing Subsequence - DP with Count Tracking, Binary Search
- 692. Top K Frequent Words - Hash Map, Custom Sorting
- 721. Accounts Merge - Union-Find, Disjoint Set
- 305. Number of Islands II - Union-Find, Incremental Connectivity
- 307. Range Sum Query - Mutable - Segment Tree, Range Sum Query
- 315. Count of Smaller Numbers After Self - Fenwick Tree, Coordinate Compression
- 3477. Number of Unplaced Fruits - Segment Tree, Greedy
- 729. My Calendar I - Ordered Set, Interval Overlap
- 732. My Calendar III - Sweep Line, Segment Tree, Maximum Overlap
- 34. Find First and Last Position of Element in Sorted Array - Lower Bound, Upper Bound
- 35. Search Insert Position - Lower Bound
- 44. Wildcard Matching - Two Pointers, Greedy, Regex
- 162. Find Peak Element - Binary Search
- 325. Maximum Size Subarray Sum Equals k - Prefix Sum, Hash Map
- 560. Subarray Sum Equals K - Prefix Sum, Hash Map
- 974. Subarray Sums Divisible by K - Prefix Modulo, Array
- 981. Time Based Key-Value Store - Binary Search, Hash Map
- 739. Daily Temperatures - Monotonic Stack, Right-to-Left Jumping
- 802. Find Eventual Safe States - DFS, Three-State Coloring, Cycle Detection
- 844. Backspace String Compare - Two Pointers, Backwards
- 993. Cousins in Binary Tree - BFS, Parent Tracking
- 1340. Jump Game V - DFS with Memoization
- 1670. Design Front Middle Back Queue - Two Deques, Rebalancing
- 1701. Average Waiting Time - Simulation, Greedy
- LCR 113. Course Schedule II (CN) - DFS, Three-State Coloring
Previous Problems (October 2025)
- 636. Exclusive Time of Functions - Stack, Log Parsing
- 708. Insert into a Sorted Circular Linked List - Two Pointers, Circular List
- 863. All Nodes Distance K in Binary Tree - Graph Conversion, DFS, Parent Pointer
- 1249. Minimum Remove to Make Valid Parentheses - Stack Validation, Parentheses
- 426. Convert Binary Search Tree to Sorted Doubly Linked List - Inorder Traversal, Recursion
- 1094. Car Pooling - Bucket Sort, Event Processing
- 1207. Unique Number of Occurrences - Hash Map, Hash Set
- 348. Design Tic-Tac-Toe - Counter Optimization, State Tracking
- 419. Battleships in a Board - Top-Left Corner, DFS
- 545. Boundary of Binary Tree - DFS, Boundary Traversal
- 347. Top K Frequent Elements - Bucket Sort, Quickselect, Heap
- 973. K Closest Points to Origin - Sorting, Heap, Quickselect
- 207. Course Schedule - Topological Sort, Cycle Detection
- 133. Clone Graph - DFS, BFS, Deep Copy
- 752. Open the Lock - BFS, Shortest Path
- 314. Binary Tree Vertical Order Traversal - BFS, Vertical Order
- 322. Coin Change - DP, Unbounded Knapsack
- 77. Combinations - Backtracking, DFS
- 47. Permutations II - Backtracking, STL, Duplicates
- 46. Permutations - Backtracking, STL
- 1650. Lowest Common Ancestor of a Binary Tree III - Two Pointers, Tree Traversal
- 2043. Simple Bank System - Data Structure Design
- 1443. Minimum Time to Collect All Apples in a Tree - DFS, Tree Traversal
- 84. Largest Rectangle in Histogram - Monotonic Stack
- 695. Max Area of Island - DFS, Connected Components
- 1868. Product of Two Run-Length Encoded Arrays - Two Pointers, Array Processing
- 1865. Finding Pairs With a Certain Sum - Hash Map, Count Tracking
- 1570. Dot Product of Two Sparse Vectors - Hash Map, Optimization
- 437. Path Sum III - DFS, Recursion
- 394. Decode String - Stack, String Processing
- 417. Pacific Atlantic Water Flow - DFS, BFS
- 406. Queue Reconstruction by Height - Greedy, Sorting
Tips for Problem Solving
- Identify the Pattern: Look for common algorithm patterns (DP, sliding window, etc.)
- Start Simple: Begin with brute force, then optimize
- Use Data Structures: Choose appropriate DS for the problem
- Consider Edge Cases: Handle boundary conditions
- Optimize Space/Time: Trade-offs between complexity and efficiency
Last updated: February 2, 2026 Total problems solved: 177