Dynamic Programming21 sections · 916 units
Open in CourseQuiz: Dice Roll States
State design choices
Check Your Understanding
In Dice Roll Simulation, why is tracking consecutive count necessary in the state?
- A.To count total appearances of each face
- B.To calculate the sum of all dice rolls
- C.To enforce that a face cannot appear more than rollMax[i] times in a row
- D.To determine when to stop rolling