Haircut solutions

Haircut was solved using Ruby by 35 contestants. Solution sizes: average 1305 bytes (shortest: 328; longest: 3339).

The list below is sorted by solution size. You can also sort by ranking.