码迷,mamicode.com
首页 >  
搜索关键字:surrounded regions    ( 301个结果
Number of Islands
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 assume...
分类:其他好文   时间:2015-04-13 19:05:29    阅读次数:138
[leetcode] 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-04-13 00:04:14    阅读次数:229
[LeetCode]Number of Islands
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-04-12 09:22:41    阅读次数:175
UVA - 11464 - Even Parity
11464 Even Parity We have a grid of size N × N. Each cell of the grid initially contains a zero(0) or a one(1). The parity of a cell is the number of 1s surrounding that cell. A cell is surrounded b...
分类:其他好文   时间:2015-04-12 09:15:39    阅读次数:143
【LeetCode】200. Number of Islands (2 solutions)
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-04-11 23:50:33    阅读次数:167
Leetcode: Number of Islands
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 adjacen...
分类:其他好文   时间:2015-04-11 06:35:48    阅读次数:145
[LeetCode]200.Number of Islands
题目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 assum...
分类:其他好文   时间:2015-04-10 22:08:54    阅读次数:153
Surrounded Regions
给定一个由字符'X'和‘O’组成的矩阵,消除所有被‘X’包围的‘O’ X X X XX O O XX X O XX O X X变成X X X XX X X XX X X XX O X X思路:有点像围棋里一块区域是否有气,只有有气的才能存活下来。即只有‘O’到达了四条边界才可以存活,因此从四条边界开...
分类:其他好文   时间:2015-04-10 21:40:06    阅读次数:152
【LeetCode】Number of Islands 解题报告
【题目】 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. Yo...
分类:其他好文   时间:2015-04-10 11:29:34    阅读次数:136
Java 图的遍历-LeetCode200
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 ...
分类:编程语言   时间:2015-04-10 00:59:46    阅读次数:342
301条   上一页 1 ... 19 20 21 22 23 ... 31 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!