Writing
Competitive Programming:
Competitive Programming:
Beyond the Basics
A book for programmers who know the fundamentals and want to solve unfamiliar problems.
Twenty chapters · classroom edition active · September 2026
Contest problems do not arrive with algorithm labels. This book, written with Josh Alman, is about the judgment between knowing standard tools and using them under pressure.
Public roadmap
- Reading constraints as design information
- Representations that make structure visible
- Invariants, exchange arguments, and proof habits
- Dynamic programming as state design
- Graph problems beyond named algorithms
- Data structures as maintained promises
- From idea to implementation
- Testing, debugging, and adversarial thinking
- Upsolving and post-contest review
- Building a practice plan that transfers
A preview of the approach
Working principle
Do not ask only, “Which algorithm is this?”
Ask what information must survive from one decision to the next, what cannot change in an optimal solution, and which representation makes those facts easiest to express. Named algorithms become more useful when they are consequences of the structure you found, not guesses made from surface resemblance.