码迷,mamicode.com
首页 >  
搜索关键字:number of islands    ( 27069个结果
JavaScript基本概念(变量和数据类型)
1. 变量 在局部作用域中省略var操作符可以定义全局变量,但是这么做会导致该变量难以维护,且在严格模式下会导致抛出ReferenceError错误。2. 数据类型(js共用6种数据类型,分别是 Undefined,Null,Boolean,Number,String,Object) 2.1 t.....
分类:编程语言   时间:2014-10-11 19:36:56    阅读次数:272
聚合数据Android SDK 短信验证演示示例
1.到libs聚合SDK是聚合数据平台,为移动开发者提供的免费数据接口.使用前请先到聚合平台(http://www.juhe.cn/)注册,申请相关数据.2.下载聚合数据SDK,将开发包里的smscaptcha_sdk_v_1_1.jar拷贝到libs根目录下,将libJuheSDK_v_1_0.so拷贝到libs\armeabi目录下,如图:3.根据接口说..
分类:移动开发   时间:2014-10-11 18:15:27    阅读次数:316
leetcode dfs Minimum Depth of Binary Tree
Minimum Depth of Binary Tree  Total Accepted: 25609 Total Submissions: 86491My Submissions Given a binary tree, find its minimum depth. The minimum depth is the number of nodes along the ...
分类:其他好文   时间:2014-10-11 17:41:25    阅读次数:151
微信红包算法
$number= 10;// 红包数$total= 100;// 总金额$wallet=array();// 红包列表// 算法for($i=$number;$i> 0;$i--){$x=$i== 1 ?$total: mt_rand(1,$total/$i);$total-=$x;$wallet[...
分类:微信   时间:2014-10-11 16:42:35    阅读次数:356
python学习记录
星期一,2013年11月4日linux自带python,只要输入python就可以进入编辑器;number=23;guess=int(raw_input('Enter:')) #int转换成整型#raw_input是一个自带函数,键盘输入if number==guess: #if...else语句(...
分类:编程语言   时间:2014-10-11 00:21:34    阅读次数:277
ZOJ - 2575 Full of Painting
Description Tingting wants to draw and stucco N squares with N different colors full of the base line of a wall. Give you the number of squares, the length of the wall, the minimum size and the ...
分类:其他好文   时间:2014-10-10 23:42:34    阅读次数:344
数论(同余+hash)
Time Limit:3000MS Memory Limit:65536KB Description You are given a sequence a[0]a[1] ... a[N-1] of digits and a prime number Q. For each i<=j with a[i] != 0, the subsequence a[i]a[i+1]...a[j] can be...
分类:其他好文   时间:2014-10-10 22:24:14    阅读次数:256
js中等性操作符(==)、关系操作符(<,>)和布尔操作符(!)比较规则
首先会调用对象的valueOf()方法,期待返回一个基本类型的值(测试为若返回Boolean、Number、String、null、undefined或没有返回值,则将不会继续调用toString方法),若返回的仍然是一个复合对象的话,则调用其toString()方法,若仍然没有返回上述基本类型的话...
分类:Web程序   时间:2014-10-10 20:38:54    阅读次数:224
Two Sum
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu...
分类:其他好文   时间:2014-10-10 16:26:13    阅读次数:141
(原创) cocos2d-x 3.0+ lua 学习和工作(4) : 公共函数(2): 检查
这里的函数主要用来做:检查操作。参考资料为quick_cocos.星月倾心贡献~~~--[[-- 检查并转换为数值,转换失败则返回 0-- @param value 要检查并转换的值-- @param base 进制,默认为十进制-- @return number 返回的数值--]]function...
分类:其他好文   时间:2014-10-10 15:59:00    阅读次数:153
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!