Dynamic Programming21 sections · 916 units
Open in Course

Quiz: Dice Roll States

State design choices

Check Your Understanding

In Dice Roll Simulation, why is tracking consecutive count necessary in the state?

  1. A.To count total appearances of each face
  2. B.To calculate the sum of all dice rolls
  3. C.To enforce that a face cannot appear more than rollMax[i] times in a row
  4. D.To determine when to stop rolling
Start the roadmap to answer the quizzes and solve the challenges