Pattern 22: LeetCode Interview Patterns24 sections · 736 units
Open in CourseQuiz: Grid Paths Recurrence
Test your understanding
Check Your Understanding
The robot can only move right or down. How many paths lead to cell (i, j)?
- A.paths(i-1, j) + paths(i, j-1)
- B.i × j
- C.max(paths(i-1, j), paths(i, j-1))
- D.paths(i-1, j) × paths(i, j-1)