โ† OYO questions

Shortest Source to Destination Path in Maze

Filed under OYO

Given an N x N matrix where 0 represents a blocked cell and 1 represents an open path, find the length of the shortest path from (0,0) to a target (tr, tc) using BFS.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related OYO questions

Collected from public candidate posts and coding forums. Updated Nov 2026.