130 Surrounded Regions [Leetcode]
题目内容:
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.
For example,X X X X
X O O X
X
原创
2015-10-02 20:45:11 ·
360 阅读 ·
0 评论