DOKICODE
Study room

Data Structures

This plan is about picking the right container for the job. Prefix sums and difference arrays answer range questions without looping, heaps keep the smallest item ready, and union-find tracks which elements belong together.

The 13 chapters open with common enumeration tricks, then work through prefix sums, difference arrays, stacks, queues and deques, heaps, tries, union-find, Fenwick and segment trees, and finish with splay trees, square root decomposition, offline algorithms and other advanced structures. It is the largest plan on Track 1, so take it a chapter at a time.

366 problemsRating 1161–311213 Chapters
Open the study room

Want company while you work through this list? Sign in, open the study room, and your heroine will bring you the problems one at a time.

0. Common Enumeration Techniques

I. Prefix Sums

II. Difference Arrays

III. Stacks

§3.6 Two Stacks

ProblemRating
2296. Design a Text Editor1912

IV. Queues & Deques

§4.3 Deque

ProblemRating
2810. Faulty Keyboard1851

V. Heaps & Priority Queues

§5.3 K-th Element

ProblemRating
264. Ugly Number II1818
23. Merge K Sorted Lists1818

VI. Trie (Prefix Trees)

§6.3 Trie-Optimized DP

ProblemRating
140. Word Break II1725

VII. Disjoint Set Union (DSU)

§7.6 Weighted Union-Find

ProblemRating
399. Evaluate Division1725

VIII. Fenwick & Segment Trees

§8.6 Persistent Segment Tree

ProblemRating
3762. Minimum Operations to Equalize Subarrays2497

§8.7 Sparse Table

ProblemRating
3501. Maximize Active Section with Trade II2941

IX. Splay Trees

§9.1 Fundamentals

ProblemRating
2296. Design a Text Editor1912

X. Square Root Decomposition (Mo's)

§8.1 Square Root Decomposition

ProblemRating
3655. XOR After Range Multiplication Queries II2454

XI. Offline Algorithms

XII. Advanced Data Structures

If you set a rating ceiling of 1600 or 1900, harder problems here wait in your challenge list, and your heroine asks before raising the limit.

Ratings come from zerotrac's LeetCode contest ratings. Some problems have no zerotrac rating and are marked Unrated.

Open the study room