Halloween SalePremium questions, over 30% offUnlock all premium questions for over 30% off
Grid Exits
Medium
FREE
Question
You are given a 2D grid containing open cells (".") and walls ("#"). An exit is any open cell on the border of the grid that is not the entrance. You start at the entrance cell (given as [row, col]).
...
Asked at:Square
More Square interview questions
- Single Bubble Explosionmedium
- Item Price Managermedium
- Pig Latin Translatoreasy
- Connect Fourmedium
- Obstacle Grid Blockseasy
- Soccer Tournament Trackermedium
- Candy Bag Matchereasy
- Frequency Merge Treemedium
OfferRetriever
Master technical interviews with real questions from top companies. Build your confidence and career.
LEGAL
© 2026 Purple Business Holdings LLC. All rights reserved. See Terms of Service.