You are given a grid of size m n. Each cell in grid contains either:
You can travel between cells by moving up, down, left, or right to an adjacent cell.
Return the minimum number of obstacles you need to remove to travel from the top left cell (0, 0) to the bottom right cell (m - 1, n - 1).
Constraints:
m grid.length
n grid[i].length
m, n
m n
grid[i][j] is either
grid[0][0] grid[m - 1][n - 1]
You are given a grid of size m n. Each cell in grid contains either:
You can travel between cells by moving up, down, left, or right to an adjacent cell.
Return the minimum number of obstacles you need to remove to travel from the top left cell (0, 0) to the bottom right cell (m - 1, n - 1).
Constraints:
m grid.length
n grid[i].length
m, n
m n
grid[i][j] is either
grid[0][0] grid[m - 1][n - 1]