Assign Cookies

Greedy ยท easy

Given children greed factors `g` and cookie sizes `s`, implement `findContentChildren(g, s)` returning the maximum number of children that can each get a cookie at least as large as their greed.

Learning resources

Loading...

Run your code to see results.