01. Sliding Window & Two Pointers (滑動視窗與雙指針)
Fixed-length and variable-length windows, opposite-direction pointers, three pointers, and subarray counting invariants.
Stop grinding random problems without a roadmap. Dokicode organizes over 2,300 LeetCode problems (inspired by EndlessCheng's taxonomic problem lists and calibrated with Zerotrac contest ratings) into 12 progressive study plans across two tracks, complete with section pattern summaries and 4-step progressive hints.
告別盲目隨機刷題。Dokicode 將超過 2,300 道 LeetCode 題目按演算法套路與 Zerotrac 競賽難度分級,整理為兩大軌道、十二份循序漸進的系統化題單,每個章節皆附帶核心套路講解與四階段漸進提示。
Open Study Plans in Dokicode →Fixed-length and variable-length windows, opposite-direction pointers, three pointers, and subarray counting invariants.
Lower/upper bound templates, binary search on answer (min-max / max-min), kth-smallest search, and monotonic predicates.
Next greater element, histogram rectangles, contribution counting, monotonic deque sliding extrema, and lexicographical stacks.
Prefix sums, difference arrays, hash maps, heaps/priority queues, Union-Find (DSU), Trie, Fenwick tree (BIT), and Segment Trees.
XOR properties, lowbit tricks, subset enumeration, bitwise contribution, and linear basis fundamentals.
Interval scheduling, exchange arguments, median inequality, regret heaps, and constructive permutations.
Prime sieves, GCD/LCM, modular arithmetic, combinatorics, inclusion-exclusion, probability, and game theory.
KMP, Z-function, Manacher palindrome search, rolling string hashing, and Aho-Corasick trie automata.
Fast/slow pointers, tree DFS/BFS, LCA, tree diameter, subset/permutation/combination backtracking, and pruning.
Connected components on grids, multi-source BFS, 0-1 BFS, Dijkstra on weighted grids, and flood fill.
Linear DP, 0-1 & unbounded knapsack, interval DP, state-machine DP, tree DP, bitmask DP, and digit DP.
DFS/BFS traversal, topological sort, Dijkstra, Bellman-Ford, Floyd-Warshall, Kruskal/Prim MST, bipartite matching, and network flow.