题目:
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?
我的解法:
(1)算法思想:
问题可以...
分类:
其他好文 时间:
2015-01-26 17:04:06
阅读次数:
200
uva 1352 Colored Cubes
There are several colored cubes. All of them are of the same size but they may be colored differently. Each face of these cubes has a single color. Colors of distinct fac...
分类:
其他好文 时间:
2015-01-26 15:14:48
阅读次数:
100
Select SyntaxWHERE ClauseALL and DISTINCT ClausesPartition Based QueriesHAVING ClauseLIMIT ClauseREGEX Column SpecificationMore Select SyntaxGROUP BYS...
分类:
其他好文 时间:
2015-01-25 20:50:31
阅读次数:
289
http://poj.org/problem?id=1094
Description
An ascending sorted sequence of distinct values is one in which some form of a less-than operator is used to order the elements from smallest to larges...
分类:
编程语言 时间:
2015-01-25 19:39:31
阅读次数:
185
1:查询数据库表中日期降序排列后的第二大日期(昨天) SELECT yestoday FROM ( SELECT ROWNUM RECNO, a.* FROM ( select distinct to_char(DATA_DATE,'yyyy-mm-dd') yestoday ...
分类:
数据库 时间:
2015-01-25 18:05:30
阅读次数:
144
Given a string, find the length of the longest substring T that contains at most 2 distinct characters.For example, Given s =“eceba”,T is "ece" which ...
分类:
其他好文 时间:
2015-01-25 06:31:56
阅读次数:
141
题目链接:点击打开链接
Description
Give a positive number, count the sum of the distinct subsequence of it, moreover, any subsequence should not contain leading zeroes except it is zero.
...
分类:
其他好文 时间:
2015-01-24 20:08:06
阅读次数:
240
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
Follow up for N-Queens problem.Now, instead outputting board configurations, return the total number of distinct solutions. 1 public class Solution { ...
分类:
其他好文 时间:
2015-01-23 22:56:59
阅读次数:
278
分页存储过程一:
--/*-----存储过程 分页处理 孙伟 2005-03-28创建 -------*/
--/*----- 对数据进行了2分处理使查询前半部分数据与查询后半部分数据性能相同 -------*/
--/*-----存储过程 分页处理 孙伟 2005-04-21修改 添加Distinct查询功能-------*/
--/*-----存储过程 分页处理 孙伟 2005-05-...
分类:
数据库 时间:
2015-01-23 21:36:11
阅读次数:
282