Distribute Candies to People
January 19, 2024
Problem # You have n candies, and you want to distribute them to a group of people arranged in a circle in the following way: Start at the first person (index 0), and then move to the next on the right for each distribution. In the first round, give 1 candy to the first person, 2 candies to the next person, and so on, until you run out of candies. ...