Problem:Given a stringSand a stringT, count the number of distinct subsequences ofTinS.A subsequence of a string is a new string which is formed from ...
分类:
其他好文 时间:
2015-01-24 15:44:24
阅读次数:
179
uva 725 Division
Write a program that finds and displays all pairs of 5-digit numbers that between them use the digits
0 through 9 once each, such that the first number divided by the second ...
分类:
其他好文 时间:
2015-01-24 14:32:11
阅读次数:
143
Given a list of non negative integers, arrange them such that they form the largest number.
For example, given [3, 30, 34, 5, 9], the largest formed number is
9534330.
Note: The result may be very ...
分类:
其他好文 时间:
2015-01-24 14:29:39
阅读次数:
137
// Populate the class2type mapjQuery.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function(i, name) { class2typ...
分类:
Web程序 时间:
2015-01-24 13:04:35
阅读次数:
475
typeof 是一个一元运算,放在一个运算数之前,运算数可以是任意类型。它返回值是一个字符串,该字符串说明运算数的类型。你 知道下面typeof运算的结果吗?typeof(1);typeof(NaN);typeof(Number.MIN_VALUE);typeof(Infinity);typeof(...
分类:
其他好文 时间:
2015-01-24 12:55:55
阅读次数:
131
Given n points
on a 2D plane, find the maximum number of points that lie on the same straight line.
这道题做的时候要考虑几个edge
1. infinity
2. same points
这里我们用hashtable将得到的slope存起来,最后每过一个点将其和其他所有点的组合成的sl...
分类:
编程语言 时间:
2015-01-24 11:45:17
阅读次数:
208
--日期转换毫秒SELECTTO_NUMBER(TO_DATE('2005-03-2912:30:45','YYYY-MM-DDHH24:MI:SS')- TO_DATE('1970-01-01 0:0:0','YYYY-MM-DDHH24:MI:SS'))*24*60*60*1000 FROMDU...
分类:
数据库 时间:
2015-01-24 11:26:02
阅读次数:
201
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.
If the number of nodes is not a multiple of k then left-out nodes in the end should remain as it ...
分类:
编程语言 时间:
2015-01-24 08:57:54
阅读次数:
148
一、分类基本数据类型:undefined、null、string、Boolean、number复杂数据类型:objectobject的属性以无序的名称和值对的形式 (name : value) 来定义1.1 、typeof操作符鉴于ECMAScript是松散型的,因此需要一种手段来检测给定的变量的数...
分类:
编程语言 时间:
2015-01-24 00:24:33
阅读次数:
275
1 #set number 2 set showmatch 3 set hlsearch 4 set incsearch 5 set ruler 6 set cursorline 7 set cursorcolumn 8 9 set tabstop=210 set expandtab11 set.....
分类:
系统相关 时间:
2015-01-24 00:22:05
阅读次数:
184