Topic 9 / 16
Backtracking
HardRecursion~5 days
Challenging
progress0 / 13 solved
Build candidates incrementally and abandon ('backtrack') when a constraint is violated.
โ ๏ธ
Why this topic is hard
Backtracking is hard because the solution isn't a sequence of independent decisions โ each choice constrains future choices. The recursive structure looks simple but visualizing the full decision tree takes practice. The most common mistake is not properly undoing state changes before trying the next branch โ this is the literal 'back' in backtracking.
Prerequisites
Progress is saved on this device