Robot Courier Routes
mediumA warehouse robot starts at the top-left bay of an m × n grid of shelving aisles and must deliver to the bottom-right bay. Its drivetrain only does two things: roll right one cell or roll down one cell.
The fleet planner wants to know how much routing freedom each grid size gives her. Return the number of distinct routes from the top-left to the bottom-right.
Example 1
in m = 3, n = 7
out 28
Example 2
in m = 3, n = 2
out 3
down-down-right, down-right-down, right-down-down.
Constraints
- · 1 <= m, n <= 20
solution.py● loading python…
test results
Hit ▶ Run to test your code against the visible cases.