You are given an m x n integer matrix grid where each cell is either 0 (empty) or 1 (obstacle). You can move up, down, left, or right from and to an empty cell. Return the minimum number of steps to…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.