Child i is content with a cookie of size ≥ g[i]. Each child gets at most one cookie. Given greed factors g and cookie sizes s, return the maximum number of content children.
Input
gs (may be empty)Output: the maximum number of content children.
1 2 3 1 1
1
1 2 1 2 3
2
Run your code against the sample tests, or Submit to run the full suite.