Given a 2D board containing ‘X‘ and ‘O‘, capture all regions surrounded by ‘X‘.
‘X‘
‘O‘
A region is captured by flipping all ‘O‘‘s into ‘X‘‘s in that surrounded region.
[LintCode] Surrounded Regions
原文:http://www.cnblogs.com/lz87/p/7494028.html