Climbing StairsYou are climbing a stair case. It takesnsteps to reach to the top.Each time you can either climb 1 or 2 steps. In how many distinct way...
分类:
其他好文 时间:
2014-08-01 04:37:21
阅读次数:
244
1,数据查询的标准语法。
SELECT [DISTINCT] * | 列 [AS][别名],列[AS][别名],...
FROM 表名称 [别名]
[WHERE 限定条件(s)]
[ORDER BY 排序字段 [ASC | DESC][,排序字段[ASC | DESC]...]];
2,多个字句的执行顺序为FROM,WHERE,SELECT,ORDER BY,其中ORDER ...
分类:
其他好文 时间:
2014-07-31 21:04:37
阅读次数:
258
题目:Given a set of distinct integers, S, return all possible subsets.Note:Elements in a subset must be in non-descending order.The solution set must n....
分类:
编程语言 时间:
2014-07-31 05:22:45
阅读次数:
286
问题描述:
You are climbing a stair case. It takes n steps to reach to the top.
Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?
解题思路:
这是一个典型的斐波那契数列,对于...
分类:
其他好文 时间:
2014-07-31 00:02:55
阅读次数:
243
最简单最基本的最长公共子序列的题目。吐槽一下为何没有给数据范围。。 1 //#define LOCAL 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 8 const int maxn = 1010;...
分类:
其他好文 时间:
2014-07-30 20:26:44
阅读次数:
214
两个都是最长上升子序列,所以就放一起了1631 因为长度为40000,所以要用O(nlogn)的算法,其实就是另用一个数组c来存储当前最长子序列每一位的最小值,然后二分查找当前值在其中的位置;如果当前点不能作为当前最长子序列的最大值,则更新找到值为两者间的较小值。2533 就是一个裸的最长上升子序列...
分类:
其他好文 时间:
2014-07-30 20:13:04
阅读次数:
230
Description
In this problem, you have to analyze a particular sorting algorithm. The algorithm processes a sequence of n distinct integers by swapping two adjacent sequence elements until the seq...
分类:
其他好文 时间:
2014-07-30 12:22:33
阅读次数:
290
Common Subsequence
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 23108 Accepted Submission(s): 10149
Problem Description
A sub...
分类:
其他好文 时间:
2014-07-29 17:51:27
阅读次数:
286
SQL SELECT DISTINCT 语句在表中,可能会包含重复值。这并不成问题,不过,有时您也许希望仅仅列出不同(distinct)的值。关键词 DISTINCT 用于返回唯一不同的值。语法:SELECT DISTINCT 列名称 FROM 表名称使用 DISTINCT 关键词如果要从 "Com...
分类:
其他好文 时间:
2014-07-29 11:28:26
阅读次数:
381
European and American breeds rare black color and distinct facial features, pale pinkish purple color of this long dress with matching holes for a fre...
分类:
其他好文 时间:
2014-07-28 14:56:43
阅读次数:
377