You are given an integer array cookies, where cookies[i] denotes the number of cookies in the k representing the number of children to whom all cookie bags must be distributed.
Every bag of cookies must be given to exactly one child and cannot be split.
The unfairness of a distribution is defined as the maximum total number of cookies obtained by any single child in that distribution.
Return the minimum unfairness of all possible distributions.
Constraints:
cookies.length
cookies[i]
k cookies.length
You are given an integer array cookies, where cookies[i] denotes the number of cookies in the k representing the number of children to whom all cookie bags must be distributed.
Every bag of cookies must be given to exactly one child and cannot be split.
The unfairness of a distribution is defined as the maximum total number of cookies obtained by any single child in that distribution.
Return the minimum unfairness of all possible distributions.
Constraints:
cookies.length
cookies[i]
k cookies.length