Log in
← All problems

Paths through a grid

mediumRecursion20 XP

Start in the top-left cell of a grid with rows rows and cols columns. Moving only right or down, how many different paths reach the bottom-right cell?

Examples

Examples use JSON: true/false/null are True/False/None in Python.

Run examples checks the examples above. Submit also runs 4 hidden tests.