码迷,mamicode.com
首页 >  
搜索关键字:number of islands    ( 27069个结果
[LeetCode] Edit Distance(很好的DP)
Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.)You have t...
分类:其他好文   时间:2014-08-18 12:20:34    阅读次数:148
poj 1465 & zoj 1136 Multiple (BFS+余数重判)
MultipleTime Limit:1000MSMemory Limit:32768KTotal Submissions:6177Accepted:1346Descriptiona program that, given a natural number N between 0 and 4999 ...
分类:其他好文   时间:2014-08-18 12:12:47    阅读次数:249
NPOI导出Excel时出现错误“Maximum column number is 255”
此错误并不是NPOI的问题,而是Excel的问题,原因是Excel的最大列255,所以导出的列超过255时就会出现此问题但Excel2007以上并没有此问题,因为2007以上的列已经增加到16384列啦,但2003和2007的代码是不一样的NPOI操作2007(NPOI 2.0):http://to...
分类:其他好文   时间:2014-08-18 12:12:04    阅读次数:448
N-Queens II
Follow up for N-Queens problem. Now, instead outputting board configurations, return the total number of distinct solutions. public class Solution { public int totalNQueens(int n) { ...
分类:其他好文   时间:2014-08-18 10:49:54    阅读次数:206
typeof
一、typeof语法为typeofdata,可能返回number,boolean,string,object,undefined,functiontypeof"John"// Returns stringtypeof3.14// Returns numbertypeoffalse// Returns...
分类:其他好文   时间:2014-08-18 01:30:53    阅读次数:262
HDU 4952 Number Transformation 多校8 机智数学
哎。这个题想了好久,状态不对啊。。。一个大家都出的题。。当时想到肯定是可以有什么规律来暴力,不用算到10的10次方对于某个k,x。从1到k循环,每次求一个新的x,这个x要大于等于原x,并且要是i的倍数。。。一直觉得有规律可循,后来知道就是倍数,我们设倍数为 b, 则b2*(i+1)>=b1*(i);...
分类:其他好文   时间:2014-08-18 00:07:43    阅读次数:196
利用HTP工具包开发报表
htp.print  语法   htp.print (cbuf | dbuf | nbuf); 作用   generates a line in an HTML document. 参数   cbuf in varchar2 or dbuf in dateor nbuf in number Generates Generates a line in an HTML document b...
分类:其他好文   时间:2014-08-17 18:34:45    阅读次数:318
Combination Sum II
Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T....
分类:其他好文   时间:2014-08-17 17:03:22    阅读次数:184
Maximum Depth of Binary Tree
Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest le...
分类:其他好文   时间:2014-08-17 16:55:02    阅读次数:202
Optional arguments
We have seen built-in functions that take a variable number of arguments. For example range can take one, two or three arguments.It is possible to wri...
分类:其他好文   时间:2014-08-17 16:52:32    阅读次数:272
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!