AlgoMaster Logo

Fair Distribution of Cookies

cookies=[8, 15, 10, 20, 8],k=2
0 / 221
algomaster.io
Step:Hand 5 cookie bag(s) to 2 child(ren) so the largest share is as small as possible