Greedy Algorithms8 sections · 316 units
Open in Course

Quiz: Bag of Tokens

Why track max score

Check Your Understanding

Why do we track maxScore separately instead of returning final score?

  1. A.Final score might be negative
  2. B.It is always the same as final score
  3. C.The algorithm does not track final score
  4. D.We might play tokens face-down at the end, reducing score but gaining power
Start the roadmap to answer the quizzes and solve the challenges