码迷,mamicode.com
首页 >  
搜索关键字:surrounded    ( 192个结果
[LeetCode][JavaScript]Surrounded Regions
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
[LeetCode][JavaScript]Number of Islands
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
[LeetCode][Java] 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 ...
分类:编程语言   时间:2015-07-29 21:18:19    阅读次数:113
[leedcode 130] 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...
分类:其他好文   时间:2015-07-26 14:01:13    阅读次数:85
【LeetCode】Number of Islands
欢迎使用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 Regions
题目: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
Number of Islands -- leetcode
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
Number of Islands
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
[LeetCode] Surrounded Regions
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
Surrounded Regions
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
192条   上一页 1 ... 8 9 10 11 12 ... 20 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!