Search⌘ K
AI Features

Solution: Walls and Gates

C# solution for the Walls and Gates problem using the Graphs pattern.

Statement

You are given a rectangular grid rooms of size m by n where each cell represents one of the following:
a wall with value 1-1
a gate with value ...