โ† PayPal questions
CodingReported in a candidate post, May 2025

Find the nearest exit in a maze grid

Filed under PayPal

Given an m x n binary matrix representing a maze where 0 is an empty cell and 1 is a wall, find the shortest path from a starting coordinate to any boundary cell (exit) 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 PayPal questions

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