Surrounded Regions — Graphs: BFS/DFS

Flip enclosed groups of O cells on a territory board to X, leaving any group that touches the board's edge as it is.

Graphs: BFS/DFS · Medium

More in Graphs: BFS/DFS

All algorithm problems