constructor及prototype皆为对象下属性, 该属性保存着所指对象在内存中地址 ( 指向内存中 一个具体对象 )1.首先牢记一个概念 在js中一切皆为对象 eg: Number 为一个对象(函数对象) 该对象有constructor属性 该属性保存了Function函数对象在内存...
分类:
Web程序 时间:
2015-08-05 12:32:52
阅读次数:
143
Description:Count the number of prime numbers less than a non-negative number,n.传送门:https://leetcode.com/problems/count-primes/尽可能把查找次数缩小,直接用双重for会超时。...
分类:
编程语言 时间:
2015-08-05 10:27:34
阅读次数:
366
题目: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...
分类:
其他好文 时间:
2015-08-05 07:44:48
阅读次数:
139
泛型的本质是参数化类型。即所操作的数据类型被指定为一个参数。 1.jdk 1.5/1.6 必须显式的写出泛型的类型。 2.jdk 1.7/1.8 不必显式的写出泛型的类型。一、泛型声明 可以用、、等进行泛型的声明。其中,的声明方式限定了T的范围,T只能为 Number的子类。 1.参数...
分类:
编程语言 时间:
2015-08-05 00:57:06
阅读次数:
155
Description:Count the number of prime numbers less than a non-negative number,n.Credits:Special thanks to@mithmattfor adding this problem and creatin....
分类:
其他好文 时间:
2015-08-05 00:51:33
阅读次数:
104
Problem Difinition:Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example, given the arr...
分类:
其他好文 时间:
2015-08-05 00:39:34
阅读次数:
144
POJ - 1847
Tram
Time Limit: 1000MS
Memory Limit: 30000KB
64bit IO Format: %I64d & %I64u
Submit Status
Description
Tram network in Zagreb consists of a number of ...
分类:
其他好文 时间:
2015-08-04 23:08:20
阅读次数:
257
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 numbers such that they add up to th...
分类:
其他好文 时间:
2015-08-04 23:00:26
阅读次数:
104
转换字节大小/** * 转换字节大小 * @param number $size * @return string */function transByte($size,$dec=2){//Byte,KB,MB,GB,TB,EB $arr=array('B','KB','MB','GB','T...
分类:
Web程序 时间:
2015-08-04 22:39:46
阅读次数:
140