You are given an m x n integer array grid. An obstacle and space are marked as 1 and 0 respectively in the grid.
A robot is initially located at the top-left corner (i.e., grid[0][0]). The robot tries to move to the bottom-right corner (i.e., grid[m - 1][n - 1]). The robot can only move either down or right at any point in time. Return the number of possible unique paths that the robot can take to reach the bottom-right corner.
Visualizer will appear here