Count the number of distinct paths from top-left to bottom-right moving only down or right.
Constraints
Example
>>> unique_paths(3, 2) 3 >>> unique_paths(3, 7) 28 >>> unique_paths(0, 5) 0 >>> unique_paths(1, 1) 1
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints