NeetCode #570LC-130MediumGraphsNC 150NC 250
← Back to All Problems

#570 · #130 · Surrounded Regions(被围绕的区域)

📌 Problem Statement & Constraints

Given an m x n board of 'X' and 'O', capture all regions of 'O' that are completely surrounded by 'X' by turning them into 'X'. 'O' cells on the border are not captured. Constraints: 1 <= m, n <= 200.
🔒

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!