You 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 ways can you climb...
分类:
其他好文 时间:
2014-09-23 00:38:33
阅读次数:
275
有时我们需要从DataTable中抽取Distinct数据,以前总是以对DataTable进行foreach之类纯手工方式获取。近来发现DataView可以帮我们直接获取Distinct数据DataTable dataTable;DataView dataView = dataTable.Defau...
分类:
其他好文 时间:
2014-09-22 17:03:42
阅读次数:
255
ALTER view [dbo].[view_weiswysjl]asselect distinct m.dbid,m.baogbh,m.chanpmc,m.jianymdyq,m.weitrq,(','+s.jjy+',') as jjy from mainexam m inner join (s...
分类:
其他好文 时间:
2014-09-19 16:55:26
阅读次数:
143
SELECT r.industry_1,r.industry_2,r.agent_id,r.agent_name,COUNT(DISTINCT r.customer_name_a)数据总量,COUNT(DISTINCT CASE WHEN r.ifhs='Y' THEN r.customer_nam...
分类:
数据库 时间:
2014-09-18 12:52:53
阅读次数:
258
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list.For example,Given 1->2-...
分类:
其他好文 时间:
2014-09-18 05:24:13
阅读次数:
195
题目:uva 10069 Distinct Subsequences
题意:给出一个子串 x 和母串 s ,求子串在母串中的不同序列的个数?
分析:定义dp【i】【j】:x 的前 i 个字母在 s 的前 j 个字母中的出现次数;
dp [ i ] [ j ] = dp [ i ] [ j - 1 ] ;
if ( x[ i ] == s [ j ] )
...
分类:
其他好文 时间:
2014-09-17 18:45:42
阅读次数:
327
## CRUD create,read, update,delete ## Operations db.collection.count() db.collection.distinct() db.collection.findOne() db.collection.remove() db.collection.save() db.collection.update() ##Cursor...
分类:
其他好文 时间:
2014-09-17 15:40:22
阅读次数:
155
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 not co...
分类:
其他好文 时间:
2014-09-17 11:35:22
阅读次数:
186
Distinct Subsequences
Total Accepted: 15484 Total
Submissions: 62324My Submissions
Given a string S and a string T, count the number of distinct subsequences of T in S.
A subsequence of ...
分类:
其他好文 时间:
2014-09-16 22:09:51
阅读次数:
204
删除指定字段yourfield1为MatchedString所所有重复项
delete * from yourtablename where yourfield1='MatchedString' and handle not in (select distinct min(Handle) from chnl where yourfield1='MatchedString')
删除数据库中所有存在重复项的字段
delete * from yourtablename where handle not in...
分类:
数据库 时间:
2014-09-16 20:39:11
阅读次数:
265