Nov 24, 2025
Minimal, copy-paste C++ for BFS queue, monotonic queue, priority queue, circular queue, and deque. See also Graph and Data Structures (monotonic queue).
leetcodetemplatesqueue
Nov 24, 2025
Minimal, copy-paste C++ for bit operations, fast exponentiation, GCD/LCM, primes, and number theory. See also Math & Geometry.
leetcodetemplatesmathbit-manipulation
Nov 24, 2025
Minimal, copy-paste C++ for traversal, two pointers, dummy node, reversal, merge, cycle detection, and circular list.
leetcodetemplateslinked-list
Nov 24, 2025
Minimal, copy-paste C++ for graph DFS, grid DFS, tree DFS, memoization, and iterative DFS. See also Graph and Backtracking.
leetcodetemplatesdfsgraph
Nov 24, 2025
Minimal, copy-paste C++ for LRU/LFU cache, Trie, time-based key-value store, and common design patterns.
leetcodetemplatesdesign
Nov 24, 2025
Minimal, copy-paste C++ for graph and grid BFS, multi-source BFS, shortest path, and level-order traversal. See also Graph for Dijkstra and 0-1 BFS.
leetcodetemplatesbfsgraph
Nov 24, 2025
Minimal, copy-paste C++ for permutations, combinations, subsets, combination sum, grid pathfinding, and constraint satisfaction (N-Queens, Sudoku).
leetcodetemplatesbacktracking
Nov 24, 2025
Minimal, copy-paste C++ for two pointers, sliding window, prefix sum, binary search, and matrix operations. See also Arrays & Strings and Search.
leetcodetemplatesarraymatrix
Nov 20, 2025
[Medium] 200. Number of Islands
leetcodealgorithmmediumcppdfsgraphmatrixproblem-solving
Nov 18, 2025
[Medium] 969. Pancake Sorting
leetcodealgorithmmediumcpparraysortingproblem-solving