</>OfferRetriever
DashboardDiscuss
NEW

July 4th Sale

Limited Time Deal: Unlock all premium questions for over 40% off

$10.42$6.25

10

:

09

:

29

:

53

Get this deal
Back to Dashboard

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]). ...