Now Erik has more candies than he had previously. In fact, he has infinite number of candies, and he wants to distribute some of those candies among his N friends. All of his friends are standing in a row and numbered 1 to N from left to right. Initially they don’t have any candy.
This is a companion discussion topic for the original entry at https://toph.co/p/erik-the-candyboy---2