x x x x
x o o x
x x o x
x o x x
why the above three 'o' are surrounded regions? I mean, the 'o' in the third row has another 'o' neighbored to it,so why it is still surrounded region?
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.