Interview Guides

Given an m x n grid of integers, find the length of the shortest path from a start cell to a destination cell. Each cell is either open (0) or blocked (1). You may move one step at a time in four directions: up, down, left, or right. Return the minimum number of steps needed to reach the destination, or -1 if no path exists.
1 <= m, n <= 200grid[i][j] is either 0 or 1start.length == 2 and end.length == 20 <= start[0], end[0] < m0 <= start[1], end[1] < n