LeetCode 130: Surrounded Regions — Step-by-Step Visual Trace

📰 Dev.to · tracelit

Given a 2D board containing ''X'' and ''O'', capture all regions of ''O'' that are completely surrounded by ''X'' by flipping them to ''X''. Regions connected to the border cannot be captured.

Published 9 Apr 2026
Read full article → ← Back to Reads