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-09 08:56:29
阅读次数:
133
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-09 08:49:41
阅读次数:
134
CopyrighttoJeffery.Su前言:文档编写日期追溯到13年10月,那时的自己还是一枚学生。基本上是三无人员。听老湿说RAC很高大上,遂弄之。那是啥也不太懂神马udev神马block什么ASM等等。一切从零开始,开始网上收集文档补充知识。借鉴了很多文档。向开源的前辈致敬!再说说装备之..
分类:
数据库 时间:
2015-04-09 06:32:33
阅读次数:
291
今天出来的新题,已经有大神出结果了,刚开始看还没看懂,就是dfs + 二维渲染 图http://www.cnblogs.com/easonliu/p/4402077.htmlpublic class Solution { public int numIslands(char[][] grid)...
分类:
其他好文 时间:
2015-04-09 06:07:07
阅读次数:
139
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-09 00:59:17
阅读次数:
146
原题链接:https://leetcode.com/problems/number-of-islands/题意描述:Given a 2d grid map of'1's (land) and'0's (water), count the number of islands. An island is...
分类:
其他好文 时间:
2015-04-08 21:09:58
阅读次数:
131
感觉这是一系列的动态规划的算法,正好也将动态规划的算法进行一个总结:
算法一:
带权重的最小路径的问题
Given a m x n grid
filled with non-negative numbers, find a path from top left to bottom right which minimizes the
sum of all numbers along i...
分类:
编程语言 时间:
2015-04-08 18:03:40
阅读次数:
167
最近项目中遇到一个grid分页加载的问题,当按照条件查询数据后,数据数据在grid中分页显示,当点击翻页后grid的中显示第二页数据。此时更换查询条件后再次点击查询时,发现grid的下面分页信息栏中页码并不是1,而是上次翻到的页面。
这是因为以前在点击查询时调用的是store.load()方法,然后再load之前将参数添加进去。
如果想让每次查询时页面从1开始就要使用store的loadPag...
分类:
Web程序 时间:
2015-04-08 15:01:57
阅读次数:
198
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-08 14:31:36
阅读次数:
122
Given a 2D board and a word, find if the word exists in the grid.
The word can be constructed from letters of sequentially adjacent cell, where "adjacent" cells are those horizontally or vertically...
分类:
其他好文 时间:
2015-04-08 13:20:30
阅读次数:
124