DOKICODE
Study room

Mathematics

This plan collects problems where the answer comes from a formula or a counting argument rather than a data structure: primes and GCDs, counting arrangements modulo a large prime, expected values, and deciding who wins a two-player game.

Its seven chapters are number theory, combinatorics, probability and expected value, game theory, computational geometry, randomized algorithms, and miscellaneous math. Take it when problems keep stalling on the math step rather than the code.

189 problemsRating 1145–28007 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.

I. Number Theory

§1.4 Factorizing Factorials

ProblemRating
172. Factorial Trailing ZeroesUnrated

§1.10 Floor Division Blocks

ProblemRating
1925. Count Square Sum TriplesUnrated

II. Combinatorics

§2.4 Inclusion-Exclusion Principle

ProblemRating
2652. Sum MultiplesUnrated
2929. Distribute Candies Among Children IIUnrated

III. Probability & Expected Value

III. Probability & Expected Value

ProblemRating
1227. Airplane Seat Assignment ProbabilityUnrated

IV. Game Theory

V. Computational Geometry

§5.4 Convex Hull

ProblemRating
587. Erect the FenceUnrated
812. Largest Triangle AreaUnrated

VI. Randomized Algorithms

VII. Miscellaneous Mathematics

§7.2 Integer Partition

ProblemRating
343. Integer BreakUnrated
1808. Maximize Number of Nice Divisors2070

§7.4 Polynomials

ProblemRating
611. Valid Triangle NumberUnrated
923. 3sum with MultiplicityUnrated
835. Image OverlapUnrated

It sits seventh on Track 1, between Greedy Algorithms and Strings & Automata, and since the route never locks a plan you can jump here from the full catalog.

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

Open the study room