Greedy Algorithms8 sections · 316 units
Open in Course

Quiz: Greedy Matching

Why this order

Check Your Understanding

Why do we match the smallest cookie to the least greedy child first?

  1. A.It is faster to process
  2. B.Using a large cookie on an easy child wastes potential for harder children
  3. C.Children prefer smaller cookies
  4. D.It simplifies the implementation
Start the roadmap to answer the quizzes and solve the challenges