If you tried the original kata first you may have assumed that the beggars were meant to take the larger of the piles at the start and end of the array, but actually this kata intends you to make the beggars always take the leftmost pile. Hope this helps anyone else confused by the description.
Wow, thank you. I couldn't for the life of me figure this out. That is stated nowhere in the description. This is very poorly written.
Well, for a code golf, it's in the 7kyu category
Maybe I'm just bad at golf (i am) but this felt significantly harder than a 7 kyu
A really interesting one that has me stumped at 78 bytes. Maybe I'll come back to it and see if I can figure it out.
genius
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
If you tried the original kata first you may have assumed that the beggars were meant to take the larger of the piles at the start and end of the array, but actually this kata intends you to make the beggars always take the leftmost pile. Hope this helps anyone else confused by the description.