码迷,mamicode.com
首页 >  
搜索关键字:number    ( 26994个结果
3Sum Closest
【题目】Given an arraySofnintegers, find three integers inSsuch that the sum is closest to a given number, target. Return the sum of the three integers. Y...
分类:其他好文   时间:2015-04-27 20:00:31    阅读次数:119
python对象基本用法
数字(Number):>>> -4-4>>> 22>>> 1000000000000000000000000000000010000000000000000000000000000000L>>> 1.231.23>>> 53E-40.0053>>> 3+4j(3+4j)>>> 07662>>> 0x...
分类:编程语言   时间:2015-04-27 19:59:45    阅读次数:205
Leetcode Count Prime
Description:Count the number of prime numbers less than a non-negative number,nHint:The number n could be in the order of 100,000 to 5,000,000.#define...
分类:其他好文   时间:2015-04-27 19:46:35    阅读次数:100
浅谈 js中parseInt函数的解析
首先还是从很热门的实例parseInt("09")==0说起。parseInt(number,type)这个函数后面如果不跟第2个参数来表示进制的话,默认是10进制。比如说parseInt("010",10)就是10进制的结果:10,parseInt("010",2)就是2进制的结果:2,parse...
分类:Web程序   时间:2015-04-27 19:44:40    阅读次数:106
【LeetCode】009 Palindrome Number
题目:LeetCode 009 Palindrome Number题意:判断一个整数是否为回文数,不要用额外空间思路:我不会不用额外空间的方法,需要利用一个长度为20以内的字符串。将整数先写入一个字符串,然后判断首位字符是否相等即可。代码如下: 1 class Solution { 2 public...
分类:其他好文   时间:2015-04-27 19:41:45    阅读次数:130
java报表工具FineReport常用函数的用法总结(文本和日期函数)
FineReport是比较常用的java报表开发工具,本文总结了常用函数中的文本和日期函数 ? 文本函数 CHAR CHAR(number):根据指定数字返回对应的字符。CHAR函数可将计算机其他类型的数字代码转换为字符。 Number:用于指...
分类:编程语言   时间:2015-04-27 18:36:14    阅读次数:231
【HDU 1005】Number Sequence —— 找周期
原题链接 Number Sequence Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 122213    Accepted Submission(s): 29653 Problem Descript...
分类:其他好文   时间:2015-04-27 18:29:05    阅读次数:91
递归之台阶问题
跳台阶题目描述一只青蛙一次可以跳上1级台阶,也可以跳上2级。求该青蛙跳上一个n级的台阶总共有多少种跳法。解题思路当n=1时,次数f(n)=1。 当n=2时,次数f(n)=2。(11或2) 当n>2时,当前一步可以跳一级,也可以跳两级,次数f(n)=f(n-1)+f(n-2)。实现代码class Solution { public: int jumpFloor(int number) {...
分类:其他好文   时间:2015-04-27 18:23:22    阅读次数:141
JS高级程序设计2nd部分知识要点4
ECMAScript中所有函数的参数都是按值传递的。5种基本数据类型: Undfined,Null,Boolean,Number,String.ECMAScript中的所有参数传递的都是值,不可能通过引用传递参数。函数声明会优先于函数表达式被解析器解析,函数表达式则必须笔等到解析器执行到它所在的代码...
分类:Web程序   时间:2015-04-27 18:20:32    阅读次数:145
【leetcode】Happy Number
Write an algorithm to determine if a number is "happy".A happy number is a number defined by the following process: Starting with any positive integer...
分类:移动开发   时间:2015-04-27 18:11:45    阅读次数:154
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!