Skip to content
Optimal Lab

Practice

Solve it yourself

178 problems in 22 patterns. Watch a pattern run in its session, then solve the problems that use it. Every problem says what to solve, its limits and examples, and the complexity to aim for, hidden until you want it.

49 easy112 medium17 hard0 of 178 solved on this device

How it works

  1. 1. Clone optimal-round. Each problem is one file with an empty function.
  2. 2. Fill it in by hand. No AI: a solution you did not work out teaches you nothing.
  3. 3. Run ./practice c 009 to check correctness and speed, then mark it solved here.

Patterns with a visual

Start here: each one has an interactive session that shows the pattern working.

More patterns

Problems and a written explainer in optimal-round; the visual is still to come.