Theory of Problem Solving

Deconstructions of algorithms and competitive programming problems — from the ICPC, IOI, Codeforces, USACO, TopCoder, and beyond. Not just the answers: each editorial reconstructs the full path to a solution — the initial observations, the ideas that failed, and the insight that finally worked.

I'm a 2× World Finalist at the International Collegiate Programming Contest, representing the University of Waterloo in 2013 (St. Petersburg) and 2015 (Morocco) — where we finished 13th in the world, 3rd in North America, and 1st in Canada — and a 2× ICPC World Finals Judge. You can find me as dojiboy9 on Codeforces.

How I solve problems →

112 / 112
StatusTitleJudgeRoundIndexStatementPublished
✓Lost CivilizationCodeforcesRound #1082 (Div. 1)Problem A1/A2[URL]2026-08-31
✓Unique ValuesCodeforcesRound #1093 (Div. 1)Problem B1/B2[URL]2026-08-30
✓Grid LCodeforcesRound #1093 (Div. 1)Problem A[URL]2026-08-25
✓Even If the World TurnsCodeforcesRound #1116 (Div. 1)Problem C[URL]2026-08-10
✓How Long Until Nothing Remains?CodeforcesRound #1116 (Div. 1)Problem D[URL]2026-08-09
✓AI Finds Nothing HereCodeforcesRound #1105 (Div. 2)Problem B[URL]2026-08-07
✓Another Popcount ProblemCodeforcesRound #1105 (Div. 2)Problem A[URL]2026-08-07
✓DecidophobiaCodeforcesRound #1105 (Div. 1)Problem B[URL]2026-08-06
✓Nim Game Is XOR GameCodeforcesRound #1105 (Div. 1)Problem A[URL]2026-08-05
✓RevivalCodeforcesRound #1105 (Div. 1)Problem C[URL]2026-08-05
✓Hunting the BeastCodeforcesRound #1105 (Div. 1)Problem D[URL]2026-08-04
✓Aladdin And The Return JourneyLightOJProblem Set1348[URL]2014
✓CamelotUSACOTraining-SetSection 3.3[URL]2014
✓ClosestRabbitTopCoderSRM 636 (Div. 1)500 Pt[URL]2014
✓CompartmentsCodeforcesRound #207 (Div. 1)Problem C[URL]2014
✓Cooking The BooksFB Hacker Cup2015 Qualification RoundProblem A[URL]2014
✓Dreamoon And StringsCodeforcesRound #272 (Div. 1)C[URL]2014
✓Dreamoon And SumsCodeforcesRound #272 (Div. 1)A[URL]2014
✓Free MarketCodeforcesRound #213 (Div. 1)Problem B[URL]2014
✓GhdCodeforcesRound #213 (Div. 1)D[URL]2014
✓Jeff And BracketsCodeforcesRound #204 (Div. 1)C[URL]2014
✓KitayutaMartTopCoderSRM 648 (Div. 1)550[URL]2014
✓Ksenia And CombinatoricsCodeforcesRound #224 (Div. 2)Problem E[URL]2014
✓Laser MazeFB Hacker Cup2015 Qualification RoundProblem C[URL]2014
✓Levko And StringsCodeforcesRound #210 (Div. 1)Problem C[URL]2014
Page 1 of 5