码迷,mamicode.com
首页 >  
搜索关键字:distinct subsequence    ( 4379个结果
String subString方法
package 字符串2;public class TestString {public static void main(String[] args) { String str = "Returns a new character sequence that is a subsequence of...
分类:其他好文   时间:2014-09-20 17:35:59    阅读次数:182
多行内容放到一行中(内容的合并)
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
一.oracle的SQL中group by使用的情况(与聚合函数的关系)
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
Remove Duplicates from Sorted List II
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 【dp+大数】
题目: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
## 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
Subsets <leetcode>
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
Leetcode dp Distinct Subsequences
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
Sql操作 - 删除数据库重复项
删除指定字段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
oracle 查看锁表情况并处理锁表
/* *locked *query locked object and analyse reason,kill it * */ select 'alter system kill session ''' || SID || ',' || SERIAL# || ''';' from (select distinct a.sid, ...
分类:数据库   时间:2014-09-16 16:01:50    阅读次数:238
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!