Distribute Candies to People Problem
Distribute Candies to People Problem — ExecCode Easy DSA Practice
Solve the Distribute Candies to People problem on ExecCode. Free online easy DSA practice in Math. Write and run code in Java, C++, Python — no signup required to run.
Description We distribute some number of candies, to a row of n = numpeople people in the following way: We then give 1 candy to the first person, 2 candies to the second person, and so on until we give n candies to the last person. Then, we go back to the start of the row, givi…
Practice Distribute Candies to People free on ExecCode. Browse more ExecCode DSA problems.