Carry Everything
Medium · Functions
Karel is standing on a pile of balls at the start of the row. Carry every ball, one at a time, to the last square of the row. Finish back on the starting square.
The piles and the rows have different sizes in each world. A walkToWall function will save you a lot of typing.
Next: Rain Check