数组属性length计算长度方法join()将数组元素组合成reverse()反转数组sort()进行排序内置函数eval(string)eval函数直接计算出string的值isNaN(变量)检验参数是否是一个数字,如果不是数字返回trueString对象属性length返回字符串的长度方法big...
分类:
编程语言 时间:
2014-05-26 08:15:15
阅读次数:
241
step 1pfile pidstep 2根据 inode number 查找
比如bash-2.05# pfiles 2605326053: python Current rlimit: 256 file descriptors 0:
S_IFCHR mode:0620 dev:32,0 ...
分类:
其他好文 时间:
2014-05-26 07:30:09
阅读次数:
329
二,TweenMax主类:这里分几个大块来介绍,分别是:第三个参数特有属性(29个),PlugIn(17个),公共属性(10个),公共方法(20个)。1,第三个参数特有属性(29个):这29个参数可以直接传入第三个OBJECT参数中,不会增加文件的大小。(1)delay
: Number:延迟开始,...
分类:
其他好文 时间:
2014-05-26 07:03:00
阅读次数:
332
题目一:
Given a binary tree containing digits from 0-9 only, each root-to-leaf
path could represent a number.
An example is the root-to-leaf path 1->2->3 which represents the number 123.
Fin...
分类:
其他好文 时间:
2014-05-26 04:06:41
阅读次数:
248
#include
int main()
{
int a;
while(1)
{
printf("please input the number:\n");
scanf("%d",&a);
if(a&1)
{
printf("%d是奇数\n",a);
}
else
{
printf("%d是偶数\n",a);
}
}
return 0;
}这...
分类:
编程语言 时间:
2014-05-26 03:36:15
阅读次数:
367
Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. You may assume that each input would have
exact...
分类:
其他好文 时间:
2014-05-25 00:46:51
阅读次数:
229
【题目】
Find the contiguous subarray within an array (containing at least one number) which has the largest sum.
For example, given the array [?2,1,?3,4,?1,2,1,?5,4],
the contiguous subarray [4,?1,2,1] has the largest sum = 6.
【题意】
给定一个数组,找出和最大的子数组,返回...
分类:
其他好文 时间:
2014-05-24 22:19:17
阅读次数:
260
Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. You may assume
that each input would have exact...
分类:
其他好文 时间:
2014-05-24 20:43:37
阅读次数:
341
http://poj.org/problem?id=3013
题意:
Because of a technical difficulty, price of an edge will be (sum of weights of all descendant nodes) × (unit price of the edge).这句话一直没看懂。后面还以为是最小生成树。
正确...
分类:
其他好文 时间:
2014-05-24 20:27:13
阅读次数:
266
1 //题目:The prime factors of 13195 are 5, 7, 13 and
29.2 //What is the largest prime factor of the number 600851475143 ? 1 #include
2 using namespace s...
分类:
其他好文 时间:
2014-05-24 10:01:21
阅读次数:
222