Fair Distribution of Cookies
Given an array cookies representing the number of cookies in each bag and an integer k representing the number of children, find the minimum unfairness of distributing the cookies among the children. Unfairness is defined as the maximum total cookies obtained by a single child in the distribution.
Print the minimum unfairness value.
Ada AI
I want to discuss a solution
Help me solve this
Give more examples
What's wrong with my code?
How to use 'for loop' in javascript?
javascript (node 13.12.0)