Find Path in Binary Matrix
Given a binary matrix where 1 represents land and 0 represents water, find any valid path from the top-left corner (0,0) to the bottom-right corner (n-1,n-1). You can only move in 4 directions (up, down, left, right) and only step on land cells.
Asked at:
Meta
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Late October, 2025
Meta
Staff
Hello Interview Premium
Your account is free and you can post anonymously if you choose.