Backtracking
96 / 170BacktrackingLesson 3 of 10About 38 min
Every item available at every level, and a marker to stop reusing the same one.
This is meant to produce every ordered pair of different items. On three items it returns two results instead of six. Click the line where a restoration is missing.
Read the constraints first and let them tell you what complexity is expected. Derive the approach, implement it, run the tests, and submit when it passes.