Peter won the part 3, steps competition.


Again, something very familiar about these 9- row cases. The 1st action is to count the rows, initially by replacing the # at the beginning with a number. And then … all heads travel right? In the 3 row case, they even separate a little before going right?
But then, those 10+ row cases.


As the rows have been counted, the 10 row case is like the previous cases. But for 13 rows, there’s, let me see, 3 heads in the top, 4 in the bottom, and in the middle 3 heads traveling up and down. Slightly different way to solve that particular problem. Looks more elegant. And apparently it saves steps. Or at least, the complete strategy for 3-13 rows saves steps.
Code
.