NeetCode #610LC-490MediumGraphsNC Algo100
← Back to All Problems

#610 · #490 · The Maze(迷宫)

📌 Problem Statement & Constraints

A ball rolls in a maze of 0 (empty) and 1 (wall) cells until it hits a wall. Given start and destination, return whether the ball can stop at the destination. Constraints: 1 <= m, n <= 100, start and destination are distinct empty cells.
🔒

Sign In to Unlock Full Solutions for All 973 Problems

Sign in to access step-by-step logic, benchmark Python3 code, complexity breakdown, and offline export!