NeetCode #593LC-959MediumGraphs
← Back to All Problems

#593 · #959 · Regions Cut By Slashes(由斜杠划分区域)

📌 Problem Statement & Constraints

An n x n grid of /, \ and represents a picture divided into regions by the slashes. Return the number of regions. Constraints: 1 <= n <= 30.
🔒

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!