Greedy Algorithms8 sections · 316 units
Open in Course

Quiz: Patching Array

Why add miss

Check Your Understanding

In Patching Array, why do we add the value 'miss' when patching?

  1. A.It guarantees we cover exactly n values
  2. B.It is the smallest missing number
  3. C.Miss is always the median
  4. D.Adding miss doubles the range we can form, which is optimal
Start the roadmap to answer the quizzes and solve the challenges