Dynamic Programming21 sections · 916 units
Open in CourseQuiz: Out of Boundary Counting
Counting vs probability
Check Your Understanding
In Out of Boundary Paths, why do we count paths modulo 10^9 + 7?
- A.To ensure the answer fits in a 32-bit integer
- B.To convert counts to probabilities
- C.To speed up computation
- D.Because the number of paths can be astronomically large