TweakCode
Optimization lessons
Loading editor…
Test casesRun to compare output
Input
n = 4
Output
—
Expected
4

More practice

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