原题地址:https://oj.leetcode.com/problems/surrounded-regions/题意:Given a 2D board containing'X'and'O', capture all regions surrounded by'X'.A region is cap...
分类:
编程语言 时间:
2014-09-24 14:06:06
阅读次数:
319
[leetcode]Given a 2D board containing 'X' and 'O', capture all regions surrounded by 'X'....
分类:
其他好文 时间:
2014-09-23 13:45:14
阅读次数:
180
leetcode 经典搜索题目 Surrounded Regions 。...
分类:
其他好文 时间:
2014-09-12 22:10:44
阅读次数:
278
DescriptionBeijing was once surrounded by four rings of city walls: the Forbidden City Wall, the Imperial City Wall, the Inner City Wall, and finally ...
分类:
其他好文 时间:
2014-09-12 20:30:24
阅读次数:
184
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...
分类:
其他好文 时间:
2014-08-28 14:55:59
阅读次数:
209
1 class Solution { 2 public: 3 void solve(vector> &board) { 4 int m = board.size(); 5 if(m == 0) 6 return; 7 ...
分类:
其他好文 时间:
2014-08-27 21:57:08
阅读次数:
292
LeetCode: Surrounded RegionsGiven a 2D board containing 'X' and 'O', capture all regions surrounded by 'X'.A region is captured by flipping all 'O's i...
分类:
其他好文 时间:
2014-08-24 20:41:13
阅读次数:
222
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 ...
分类:
其他好文 时间:
2014-08-13 18:06:46
阅读次数:
200
参考文献:http://blog.csdn.net/lanxu_yy/article/details/17848219 不过本文准备用超链接的方式连接到相应解答页面,不断更新中
题目
算法
数据结构
注意事项
Clone Graph
BFS
哈希表
Word Ladder II
BFS
哈希表
Surrounded Regions...
分类:
其他好文 时间:
2014-08-11 08:27:51
阅读次数:
238
Surrounded RegionsGiven 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...
分类:
其他好文 时间:
2014-08-07 22:43:55
阅读次数:
304