Lam NguyenAlgorithms

Selected LeetCode Problems

Updated November 18, 2026

Topics
  1. Contest Setup
  2. Binary Search
  3. Dynamic Programming
  4. Range Queries
  5. Priority Queues
  6. Stacks
  7. Hashing
  8. Strings
  9. Graphs and Trees
  10. Graph Theory
  11. Network Flow
  12. Combinatorics
  13. Algebra
  14. Data Structure Design
  15. Performance Optimization
  16. Databases
  17. Selected LeetCode Problems

A running list of LeetCode problems worth remembering, each labeled with the topic or technique it turns on. It doubles as an index into the topic pages on this site, and I add to it as I go.

The list

Problem Topic
1520 — Maximum Number of Non-Overlapping Substrings Sorting and Greedy
2213 — Longest Substring of One Repeating Character Segment Tree
732 — My Calendar III Dynamic Segment Tree, Lazy Propagation
2286 — Booking Concert Tickets in Groups Segment Tree Walk, Amortized Analysis
2827 — Number of Beautiful Integers in the Range Digit DP
679 — 24 Game Range DP, Backtracking
30 — Substring with Concatenation of All Words Rolling Hash
214 — Shortest Palindrome Rolling Hash
1923 — Longest Common Subpath Rolling Hash, Binary Search
652 — Find Duplicate Subtrees XOR / Merkle Hashing
1948 — Delete Duplicate Folders in System XOR / Merkle Hashing
Count Subarrays with Distant Sums Fenwick Tree, Coordinate Compression
1971 — Find if Path Exists in Graph Graphs, Adjacency (CSR)
3067 — Count Pairs of Connectable Servers in a Weighted Tree Network Trees
4085 — Find Root of a Colored Tree Orienting a Tree
1641 — Count Sorted Vowel Strings Combinatorics, Stars and Bars
1621 — Number of Sets of K Non-Overlapping Line Segments Combinatorics, Stars and Bars
1146 — Snapshot Array Persistent Data Structures
311 — Sparse Matrix Multiplication Sparse Matrix, CSR
400 — Nth Digit Digit Counting
4053 — Minimum Operations to Make Every Element Palindromic Precompute, Binary Search
3357 — Minimize the Maximum Adjacent Element Difference Binary Search on the Answer
211 — Design Add and Search Words Data Structure Trie, DFS
421 — Maximum XOR of Two Numbers in an Array Binary Trie
588 — Design In-Memory File System Trie over Path Names
308 — Range Sum Query 2D - Mutable Quadtree
427 — Construct Quad Tree Region Quadtree
4099 — Minimum Operations to Sort With Locked Indices Difference Array, Fenwick Inversion Count
462 — Minimum Moves to Equal Array Elements II Binary Search on the Slope, Median
465 — Optimal Account Balancing Bitmask DP, Submask Enumeration
4103 — Remove Elements by Type and Color Cancellation Stack, String Rewriting
4104 — Count Valid Substrings II Counting Valid Intervals by Right End
3105 — Longest Strictly Increasing or Strictly Decreasing Subarray Accumulator, Aggregate Functions
3553 — Minimum Weighted Subgraph With the Required Paths II LCA in O(1), Steiner Tree
359 — Logger Rate Limiter Lambdas as Callbacks, Hash Map