TweakCode
Search lessons
Loading editor…
Test casesRun to compare output
Input
n = 5, bad = 4
Output
—
Expected
4

More practice

Same technique, different problems. Try them without the walkthrough.