You are given a candies, where each candies[i] denotes the number of candies in the k.
You can divide any pile into any number of smaller subpiles, but you cannot merge different piles together.
You want to distribute the candies such that each of the k children gets the same number of candies. Each child can receive at most one subpile of candies, and some candies may remain unused.
Return the maximum number of candies each child can obtain. If it is impossible to distribute at least
Constraints:
candies.length
candies[i]
k
You are given a candies, where each candies[i] denotes the number of candies in the k.
You can divide any pile into any number of smaller subpiles, but you cannot merge different piles together.
You want to distribute the candies such that each of the k children gets the same number of candies. Each child can receive at most one subpile of candies, and some candies may remain unused.
Return the maximum number of candies each child can obtain. If it is impossible to distribute at least
Constraints:
candies.length
candies[i]
k