我是把它当做一道数学题来做的。这篇题解写的有点啰嗦,但是是我最原始的思维过程。对于一个集合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
Arithmetic in bash is done with $ and double parentheses:echo "$(($num1+$num2))"Or $ and square brackets:echo "$[$num1+$num2]"You can assign from that...
分类:
其他好文 时间:
2014-07-11 22:33:14
阅读次数:
235
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
DescriptionA subsequence of a given sequence is the given sequence with some elements (possible none) left out. Given a sequence X = another sequence....
分类:
其他好文 时间:
2014-07-11 11:28:14
阅读次数:
269
DescriptionThe Recaman's sequence is defined by a0 = 0 ; for m > 0, am= am?1? m if the rsulting amis positive and not already in the sequence, otherwi...
分类:
其他好文 时间:
2014-07-11 11:12:10
阅读次数:
201
Like a string, a list is a sequence of values. In a string, the values are characters; in a list, they can be any type. The values in list are called ...
分类:
其他好文 时间:
2014-07-11 09:01:06
阅读次数:
242
1. About Sequences(关于序列)
序列是数据库对象一种。多个用户可以通过序列生成连续的数字以此来实现主键字段的自动、唯一增长,并且一个序列可为多列、多表同时使用。
序列消除了串行化并且提高了应用程序一致性。(想象一下没有序列的日子怎么办?)
2. Creating Sequences(创建序列)
前提:Prerequisites
To create a sequ...
分类:
数据库 时间:
2014-07-10 22:04:36
阅读次数:
284
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
以下内容整理自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
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