~/problems

Problems

Basics first, then the classics, then company-style assessments. Every problem has tests you run right here; multi-level ones unlock as you go. See the roadmap.

85 problems

Advanced & competitive

Range queries Fenwick trees, segment trees, sparse tables.

Sparse table (static RMQ)

Tree techniques Binary lifting, LCA, Euler tours.

Binary lifting / LCA

1 more Binary lifting / LCA problem →

Advanced DP Bitmask and digit DP.

Bitmask DP

4 more Bitmask DP problems →

Digit DP

1 more Digit DP problem →

Number theory Modular arithmetic, primes, matrix powers.

Primes, divisors and GCD

4 more Primes, divisors and GCD problems →

Geometry Cross products, orientation, polygons.

esc