1. 数值Infinity:无穷大NaN:非数值Number.MAX_VALUE:可表示的最大数值Number.MIN_VALUE:可表示的最小数值Number.NaN:非数值Number.POSITIVE_INFINITY:正无穷大Number.NEGATIVE_INFINITY:负无穷大2. 数...
分类:
编程语言 时间:
2015-02-01 07:03:18
阅读次数:
304
1:先看例子
{CSDN:CODE:592849}
看输出结果:
1
2
3
4
all number is positive
2:再看一个变例
{CSDN:CODE:592848}
看输出结果:
1
2
3:结论
当for语句中没有执行break的话,遍历完for语句,就会执行else语句
但是如果中间...
分类:
编程语言 时间:
2015-01-29 21:09:30
阅读次数:
450
【题目】
Given a positive integer, return its corresponding column title as appear in an Excel sheet.
For example:
1 -> A
2 -> B
3 -> C
...
26 -> Z
27 -> AA
28 -> AB...
分类:
其他好文 时间:
2015-01-29 15:57:07
阅读次数:
189
阳性 (P, positive)阴性 (N, Negative)真阳性 (TP, true positive):正确的肯定。又称:命中 (hit)真阴性 (TN, true negative):正确的否定。又称:正确拒绝 (correct rejection)伪阳性 (FP, false posit...
分类:
其他好文 时间:
2015-01-29 10:19:32
阅读次数:
189
原题链接:
在不开辟另外空间的情况下,这道题做法比较tricky。做法如下:
1. 预先扫描当前数组,将小于0的数值全部设置为n + 1,这样新的n + 1也不会对之后的计算产生影响
2. 再次扫描数组,如果当前index绝对值小于等于n,则将A[A[index] - 1]设置为负值(所以之前为什么说取绝对值)。
3. 最后扫描数组,如果当前对应值为正值,则说明当前index + ...
分类:
其他好文 时间:
2015-01-28 17:52:00
阅读次数:
118
Given a positive integer, return its corresponding column title as appear in an Excel sheet.
For example:
1 -> A
2 -> B
3 -> C
...
26 -> Z
27 -> AA
28 -> AB
这里就是一个将...
分类:
其他好文 时间:
2015-01-28 14:37:56
阅读次数:
133
Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequences, you are supposed to ou...
分类:
其他好文 时间:
2015-01-28 14:32:56
阅读次数:
152
Problem Description
The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the elevator will stop, in specified ...
分类:
其他好文 时间:
2015-01-28 09:55:48
阅读次数:
148
Problem D
FILL
There are three jugs with a volume of a, b and c liters. (a, b, and c are positive integers not greater than 200). The first and the second jug are initially empty, while the...
分类:
其他好文 时间:
2015-01-28 09:46:17
阅读次数:
275
话筒的录音和听筒的放音同时进行,或者语音通话app 通话双方离得太近。会产生刺耳的回声样的声音。查资料。此种现象叫做啸叫正反馈(英语:positive feedback),是反馈的一种。是指一系统的输出影响到输入,使得输出变动后会影响到输入,造成输出变动持续加大的情形;同理,如果输出变动持续减少,就...
分类:
其他好文 时间:
2015-01-27 19:52:02
阅读次数:
176