Find All Reachable Exits in a Grid

Given an n × n grid containing obstacles and a starting cell, return every exit reachable from the start.

The original post does not define exits, movement rules, or the output format. This complet...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: