Greedy Algorithms8 sections · 316 units
Open in CourseQuiz: Bag of Tokens
Why track max score
Check Your Understanding
Why do we track maxScore separately instead of returning final score?
- A.Final score might be negative
- B.It is always the same as final score
- C.The algorithm does not track final score
- D.We might play tokens face-down at the end, reducing score but gaining power