码迷,mamicode.com
首页 >  
搜索关键字:gap sequence    ( 7114个结果
HDU 2062 Subset sequence
我是把它当做一道数学题来做的。这篇题解写的有点啰嗦,但是是我最原始的思维过程。对于一个集合An= { 1, 2, …, n },在n比较小的情况下,在纸上按字典顺序把所有子集排列一下。以n=3,m=10举例:11 21 2 31 31 3 222 12 1 32 32 3 133 13 1 23 2...
分类:其他好文   时间:2014-07-11 23:14:02    阅读次数:864
Wildcard Matching
Implement wildcard pattern matching with support for '?' and '*'.'?' Matches any single character.'*' Matches any sequence of characters (including th...
分类:其他好文   时间:2014-07-11 19:36:48    阅读次数:202
c++ string c_str() 和data()区别
看下面的英文解释:const char* c_str ( ) const;Get C string equivalentGenerates a null-terminated sequence of characters (c-string) with the same content as the...
分类:编程语言   时间:2014-07-09 20:40:50    阅读次数:345
[LeetCode] Word Break
Given a stringsand a dictionary of wordsdict, determine ifscan be segmented into a space-separated sequence of one or more dictionary words.For exampl...
分类:其他好文   时间:2014-07-09 00:53:55    阅读次数:277
HDU--Max sum---DP练习
Max Sum Time Limit: 2000ms   Memory limit: 32768K  有疑问?点这里^_^ 题目描述 Given a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum of a sub-sequence. For example, given (6,-...
分类:其他好文   时间:2014-07-08 21:30:17    阅读次数:205
poj 4044 Score Sequence(暴力)
http://poj.org/problem?id=4044 大致题意:给出两个班级的成绩,先按降序排序,并且没有成绩相同的。然后求连续的最长公共子序列。输出时,先输出最长公共子序列,然后按个位数字递增的顺序输出,若各位数字一样就按成绩递增。 人数小于30,注意去重,直接暴力即可。 #include #include #include #include #in...
分类:其他好文   时间:2014-07-08 20:59:44    阅读次数:228
ORACLE 同义词(SYNONYM)详解
以下内容整理自Oracle 官方文档 一 概念 A synonym is an alias for any table, view,materialized view, sequence, procedure, function, package, type, Java classschema object, user-defined object type, or another synon...
分类:数据库   时间:2014-07-08 20:07:14    阅读次数:296
POJ 2513 Colored Sticks
欧拉通路+并查集+字典树 题意是说 木棍两头有颜色,怎么排让它连成一串。颜色相同可以接起来。 最开始想用map水过去,一直TLE。怒点字典树天赋……花了一上午。 字典树不多介绍,我的节点开小了,CE好几次,才想起 “There is no more than 250000 sticks.” “A word is a sequence of lowercas...
分类:其他好文   时间:2014-07-08 17:22:26    阅读次数:180
SPOJ LCS2 1812. Longest Common Substring II
SPOJ Problem Set (classical) 1812. Longest Common Substring II Problem code: LCS2 A string is finite sequence of characters over a non-empty finite set Σ. In this problem, Σ is...
分类:其他好文   时间:2014-07-08 17:14:39    阅读次数:291
查找一个数组中最小的前n项
/****************************************************************** find the biggest x number in a sequence* the basic method is the same as the Quic....
分类:其他好文   时间:2014-07-06 13:12:01    阅读次数:176
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!