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.
DeepCamp AI