Topic: Greedy Algorithm Problem / Level: beginner

Problem: Distribute a set of candies such that no two adjacent people receive the same number of candies.

Run the code to see the output here...