注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
本帖最后由 eallanwong 于 2013-3-5 08:14 编辑
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 .
For example,
X X X X
X O O X
X X O X
X O X X
After running your function, the board should be:
X X X X
X X X X
X X X X
X O X X
» Solve this problem
http://leetcode.com/onlinejudge
这道题看不懂,有谁能解释一下这道题的题意?
capture all regions surrounded by 'X'.
A region is captured by flipping all 'O's into 'X's in that surrounded region .
这两句话我都看不懂,有谁能解释一下吗?
|