Back to QuestionsPractice with This Question
Shortest Path in Binary Matrix (BFS)
76.7K views•Asked at LinkedIn•
Medium
Question Explain
Given an $n \times n$ binary matrix, return the length of the shortest clear path from the top-left to the bottom-right corner. Use BFS.
Start Trying This Question Simulation
Practice answering orally or with text to get instant AI feedback.