Assign Cookies
Easy · Greedy · about 10 minutes
Asked at Amazon, Google, Bloomberg, Meta.
Child i is content with a cookie of size at least g[i]; cookie j has size s[j]. Each child gets at most one cookie. Return the maximum number of content children.