This theory is part of Premium
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricingCount the ways across a grid moving only right or down.
What this asks
Count the ways from the top-left to the bottom-right of a grid, moving only right or down.
dp[r][c] = dp[r - 1][c] + dp[r][c - 1], with the first row and first column seeded to 1.
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricing