Greedy Algorithms8 sections · 316 units
Open in CourseQuiz: Two-Pass Pattern
When to use it
Check Your Understanding
Why does Candy need two passes?
- A.One pass is too slow
- B.The array might be unsorted
- C.Constraints involve both left and right neighbors
- D.To handle negative ratings