← ALL NOTES
Array

2226. Maximum Candies Allocated to K Children

Given candies (piles) and k children: a pile can be split into parts but piles can't be merged; each child gets the same number of candies, all from one pile (leftovers discarded). Maximise candies…

Loading…