[LintCode] Surrounded Regions

Given a 2D board containing 'X' and 'O', capture all regions surrounded by 'X'.

A region is captured by flipping all 'O''s into 'X''s in that surrounded region.




posted @ 2017-09-27 06:42  Review->Improve  阅读(226)  评论(0编辑  收藏  举报