码迷,mamicode.com
首页 >  
搜索关键字:number of islands    ( 27069个结果
javascript之object
一、构造函数 new object() new object(value) value:可以是数字,布尔值或字符串,这些值将转换为Number、Boolean或者String对象。二、属性 object.constructor 所有对象的constructor属性都指向当前对象的构造函数的...
分类:编程语言   时间:2014-08-04 13:39:47    阅读次数:206
tarjan+缩点+强连通定理
C - Network of Schools Time Limit:1000MS     Memory Limit:10000KB     64bit IO Format:%I64d & %I64u Submit Status Description A number of schools are connected to a computer network....
分类:其他好文   时间:2014-08-04 11:02:27    阅读次数:177
Single Number II
问题:找出只出现一次的数,其他数出现了三次分析:将数转化为二进制的位,数出现了三次相当于其对应的二进制上每个位置出现了3次,这里有个抽象的地方就是,例如数中包含1,3两个其二进制的第一位都包含1, 怎么区分,其实并不需要区分,无论是数字3的还是数字1的二进制第一位的1都无所谓,因为我们完全可以...
分类:其他好文   时间:2014-08-04 10:53:27    阅读次数:296
ZigZag Conversion leetcode java
题目:The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed f....
分类:编程语言   时间:2014-08-04 10:47:57    阅读次数:222
Palindrome Number leetcode java
题目:Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integers be palindromes....
分类:编程语言   时间:2014-08-04 04:09:56    阅读次数:339
HDU 4006 The kth great number (基本算法-水题)
HDU 4006 The kth great number (基本算法-水题) 题目大意: 有m组操作,求第K大数。I为insert操作,即插入1个数,Q为询问,输出此时的第K大数。 解题思路: 一道水题让我智商捉鸡了,居然笨到想去用线段树去做。后来发现1个set搞定,就存K个大数,超过的把小的踢掉,输出第一个即可。...
分类:其他好文   时间:2014-08-03 23:19:36    阅读次数:287
POJ - 1436 Horizontally Visible Segments
Description There is a number of disjoint vertical line segments in the plane. We say that two segments are horizontally visible if they can be connected by a horizontal line segment that does not ...
分类:其他好文   时间:2014-08-03 23:16:26    阅读次数:412
hdu 2852 KiKi's K-Number
L -KiKi's K-NumberTime Limit:2000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionFor the k-th number, we all should be very ...
分类:其他好文   时间:2014-08-03 23:10:06    阅读次数:312
uva 11610 Reverse Prime
Problem FReverse PrimeInput:Standard InputOutput:Standard OutputThere are a few 7 digit positive numbers whose reverse number is a prime number and le...
分类:其他好文   时间:2014-08-03 23:07:36    阅读次数:469
URAL 1036(dp+高精度)
Time Limit:2000MSMemory Limit:65536KB64bit IO Format:%I64d & %I64uSubmitStatusPracticeURAL 1036DescriptionYou are given a number 1 ≤N≤ 50. Every ticke...
分类:其他好文   时间:2014-08-03 20:18:45    阅读次数:433
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!