AlgoMaster Logo

Surrounded Regions

board=[["X","X","X","X"],["X","O","O","X"],["X","X","O","X"],["X","O","X","X"]]
0 / 14
01230123XXXXXOOXXXOXXOXX
algomaster.io
Step:Capture every 'O' region that cannot reach the border