Algorithm · Roblox · Easy
You receive a 2D character grid along with coordinates named start and end. Beginning at start, the player can travel one cell per move in any cardinal direction: north, south, west, or east. A grid position contains one of the following characters: '.' — open terrain where the player may stand. '#' — a blocked position that the player may not move into. Return true when end can be reached from start; otherwise, return false. Both start and end are two-element arrays in the…
Checking your access…