Candy Splitting solutions

Candy Splitting was solved using JavaScript by 12 contestants. Solution sizes: average 2586 bytes (shortest: 560; longest: 5571).

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