Distinct SubsequencesGiven a stringSand a stringT, count the number of distinct subsequences ofTinS.A subsequence of a string is a new string which is...
分类:
其他好文 时间:
2015-01-20 15:07:57
阅读次数:
164
0、JavaScript的简单数据类型包括数字、字符创、布尔值(true/false)、null和undefined值,其它值都是对象。
1、JavaScript只有一个数字类型,它在内部被表示为64位的浮点数。没有分离出整数,所以1和1.0的值相同。
2、NaN是一个数值,表示一个不能产生正常结果的运算结果。NaN不等于任何值,包括它本身。可以用函数isNaN(number)检测NaN,但是建议用isFinite()来检测某值是否是数字。
typeof NaN === ‘number’ ...
分类:
编程语言 时间:
2015-01-20 13:51:20
阅读次数:
270
/// /// The waveOutGetNumDevs function retrieves the number of waveform-audio output devices present in the system. /// /// Ret...
分类:
其他好文 时间:
2015-01-20 13:42:48
阅读次数:
158
令Pi表示第i个素数。现任给两个正整数M 2 #include 3 4 bool Is(int number) 5 { 6 int i=2; 7 bool flag=true; 8 while(i=PM)31 {32 ...
分类:
其他好文 时间:
2015-01-20 13:22:44
阅读次数:
162
B-number
Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d
& %I64u
Submit Status
Description
A wqb-number, or B-number for short, is a non-negative integer whose dec...
分类:
其他好文 时间:
2015-01-20 12:04:45
阅读次数:
131
The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)
P A H N
A P L S I I ...
分类:
其他好文 时间:
2015-01-20 10:29:45
阅读次数:
133
Largest NumberGiven a list of non negative integers, arrange them such that they form the largest number.For example, given [3, 30, 34, 5, 9], the lar...
分类:
其他好文 时间:
2015-01-20 10:17:53
阅读次数:
331
1. date 显示日期
使用+可输出自定义格式。EX: date +%Y%m%d
2. cal 显示日历
EX:cal 6666 显示6666年日历
3. bc 简单好用计算器
+加,-减,*乘,/除,^指数,%取余。默认输出整数,设置小数点:scale=number。
退出:quit。
EX:$bc
bc 1.06.95
Copyright 1991-1994...
分类:
系统相关 时间:
2015-01-20 09:00:13
阅读次数:
242
原题地址:https://oj.leetcode.com/problems/factorial-trailing-zeroes/题目内容:Given an integern, return the number of trailing zeroes inn!.Note:Your solution s...
分类:
其他好文 时间:
2015-01-20 00:49:43
阅读次数:
182
SubstringsTime Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionYou are given a number of case-sensitive strings of...
分类:
其他好文 时间:
2015-01-19 22:18:09
阅读次数:
150