Leetcode 1091. Shortest Path in Binary Matrix
Posted on Fri 24 January 2025 in Leetcode • Tagged with bfs-for-shortest-path, priority-queue
Question Link : https://leetcode.com/problems/shortest-path-in-binary-matrix/
Difficulty: Medium
Premium: False
Question
Given an n x n binary matrix grid, return the length of the shortest clear path in the matrix. If there is no clear path, return -1. A clear path in a binary matrix is a path from …
Continue reading