Extend the 14-day foundations with graph modeling, union find, topological ordering, bridges, tree states, heaps, constrained DP, and backtracking. Some exercises are premium; revision guides are public.
0 of 24 milestones completed
0 of 3 completed
Clone structure, spread from multiple sources, then count route changes. Explain what a vertex and a transition mean in each problem.
0 of 2 completed
Keep the standalone DSU template. Join by shared evidence, not equal names, and count only successful merges. The two milestones are premium; the optional edge-limit exercise is free.
Sort edges and queries together, merge only edges strictly below each limit, and restore the original query order.
0 of 3 completed
Use indegrees for dependency ordering and low-link values for bridges. These are distinct invariants. Foreign Dictionary is a premium exercise.
0 of 4 completed
Compare a downward height, a path gain, a take/skip pair, and a coverage state. Camera placement is a greedy state algorithm, not the same numeric recurrence as house selection.
Compute one root's distance sum, then reroot across an edge by moving a subtree closer and its complement farther.
0 of 4 completed
Choose the comparator and bound frontier size. Compare sorting with k-way merging schedules. A heap orders candidates; the graph score still needs a proof. This day includes premium exercises.
Extend LRU with frequency buckets and recency tie-breaking. Compare explicit constant-time list updates with heap-based priority maintenance.
0 of 2 completed
Reduce a circle to two linear ranges, then distinguish choosing an item once from unbounded reuse. The knapsack exercise is premium.
0 of 3 completed
Revisit a next-greater stack, reduce a binary matrix to histograms, then maintain a window's character deficits. Do not use one template for all three invariants.
0 of 3 completed
Explain which state is local to one candidate and must be restored. Contrast path-local visitation with a graph traversal's global visited set.