6 ms·
Sorry, it's not that hard, I'm just not explaining it well. Everyone is going to get the segment of candy between two of their cards. If you try an example out
by justinpombrio 8y ago
Sorry, it's not that hard, I'm just not explaining it well.
Everyone is going to get the segment of candy between two of their cards. If you try an example out, I'm confident you can figure out how to do this.
Alternatively, here's a better description I put in a followup comment:
-------------
Whoever has the leftmost second card gets everything between their first and second cards.
After that point, whichever remaining person has the leftmost third card gets everything between their second and third cards.
After that point, whichever remaining person has the leftmost fourth card gets everything between their third and fourth cards.
And so forth.