Search⌘ K
AI Features

Walls and Gates

Try to solve the Walls and Gates problem.

Statement

You are given a rectangular grid rooms of size m by n where each cell represents one of the following: ...