IntermediateRating 1400
Paths Around Obstacles
Count paths from top-left to bottom-right moving right or down through a grid of . (free) and # (blocked).
Input
r c, then r lines.
Output
A count.
Sample 1
Input
3 3 ... .#. ...
Output
2
Sample 2
Input
2 2 .# ..
Output
1
Output appears here