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...
分类:
编程语言 时间:
2015-08-02 00:52:36
阅读次数:
135
Number of IslandsGiven a 2d grid map of'1's (land) and'0's (water), count the number of islands. An island is surrounded by water and is formed by con...
分类:
编程语言 时间:
2015-08-01 00:58:34
阅读次数:
743
题目:
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 ...
分类:
编程语言 时间:
2015-07-29 21:18:19
阅读次数:
113
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...
分类:
其他好文 时间:
2015-07-26 14:01:13
阅读次数:
85
欢迎使用Markdown编辑器写博客问题描述Given a 2d grid map of ‘1’s (land) and ‘0’s (water), count the number of islands. An island is surrounded by water and is formed by connecting adjacent lands horizontally or verti...
分类:
其他好文 时间:
2015-07-15 13:18:42
阅读次数:
105
题目:130 Surrounded Regionsbfs搜索即可from Queue import Queueclass Solution: # @param {character[][]} board # @return {void} Do not return anything, m...
分类:
其他好文 时间:
2015-07-14 06:09:45
阅读次数:
127
Given a 2d grid map of '1's (land) and '0's
(water), count the number of islands. An island is surrounded by water and is formed by connecting adjacent lands horizontally or vertically. You may assu...
分类:
其他好文 时间:
2015-07-07 22:57:28
阅读次数:
152
Description:Given a 2d grid map of'1's (land) and'0's (water), count the number of islands. An island is surrounded by water and is formed by connecti...
分类:
其他好文 时间:
2015-06-25 12:03:53
阅读次数:
104
This problem is not quite difficult (a typical BFS traversal of graph), though, its aceptance rate is relatively low. In fact, the key obstacle in pas...
分类:
其他好文 时间:
2015-06-24 20:52:01
阅读次数:
173
Description: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 surro...
分类:
其他好文 时间:
2015-06-21 17:06:27
阅读次数:
109