Assign Cookies
Assign Cookies
You are a parent distributing cookies to children. Each child i has a greed factor g[i], the minimum cookie size that will satisfy that child. Each cookie j has a size s[j]....
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
