You are given an grid and an integer d. The grid consists of empty cells '.' and obstacle cells '#'.
A climbing route is a sequence of distinct cells
The route starts at any empty cell in the bottom row, where grid'.'.
The route ends at any empty cell in the top row, where grid'.'.
Every visited cell along the route is empty, meaning grid'.' for all
The row index is nonincreasing at every step, meaning
The Euclidean distance between any two consecutive cells along the route is at most d, meaning
Return the total number of valid climbing routes.
Constraints:
grid.length
grid[i].length
grid[i][j] is '.' or '#'.
You are given an grid and an integer d. The grid consists of empty cells '.' and obstacle cells '#'.
A climbing route is a sequence of distinct cells
The route starts at any empty cell in the bottom row, where grid'.'.
The route ends at any empty cell in the top row, where grid'.'.
Every visited cell along the route is empty, meaning grid'.' for all
The row index is nonincreasing at every step, meaning
The Euclidean distance between any two consecutive cells along the route is at most d, meaning
Return the total number of valid climbing routes.
Constraints:
grid.length
grid[i].length
grid[i][j] is '.' or '#'.