Distribute Candies to People Leetcode Solution
Problem Statement In this problem, we are given two numbers candies and num_people. The first number candies is the number of candies we have. num_people shows the number of person in which we have to distribute the candies. The rule of candies distribution is: We start from the leftmost person …