Distribute Candies Problem
Distribute Candies Problem — ExecCode Easy DSA Practice
Solve the Distribute Candies problem on ExecCode. Free online easy DSA practice in Arrays - Logic Building. Write and run code in Java, C++, Python — no signup required to run.
Description Alice has n candies, where the i^th candy is of type candyType[i]. Alice noticed that she started to gain weight, so she visited a doctor. The doctor advised Alice to only eat n / 2 of the candies she has (n is always even). Alice likes her candies very much, and she…
Practice Distribute Candies free on ExecCode. Browse more ExecCode DSA problems.