Java · 2D arrays, searching and sorting
Two programs that both work can differ a thousandfold in speed, and counting steps tells you which one before you run it.