Question DSA-GRDY-0040
EasyChildren have greed factors [1, 2, 3] and the cookies have sizes [1, 1]. A child is content with a cookie at least as big as its greed. Matching greedily, how many children can be made content?
- A.
0
- B.
1
- C.
Sign up free to see the answer and a step-by-step explanation.