TweakCode
Search lessons
Loading editor…
Test casesRun to compare output
Input
nums = [-4,-1,0,3,10]
Output
—
Expected
[0,1,9,16,100]

More practice

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