01 Matrix
Distances to the nearest source for every cell by seeding one BFS with all sources at distance zero.
Not attemptedLeetCodeMedium, unverified labelAccess: not determined
The exercise happens on LeetCode. Canonical link: https://leetcode.com/problems/01-matrix/. Link check: not checkable automatically (5 Oct 2026). Opened from this app 0 times; opening is not counted as an attempt.
Check note: Not requested individually: leetcode.com refused or challenged earlier automated requests (HTTP 403), so the check stopped contacting it. Open the link in a browser.
Record an attempt
Attempt history
No attempts recorded yet.