简单题 1 /* 2 ID: leetcod3 3 PROG: sort3 4 LANG: C++ 5
*/ 6 #include 7 #include 8 #include 9 #include 10 #include 11 #include 12
#include 13 #include ...
分类:
其他好文 时间:
2014-06-16 09:51:21
阅读次数:
162
Question:Given a stringsand a dictionary of
wordsdict, determine ifscan be segmented into a space-separated sequence of one
or more dictionary words.F...
分类:
其他好文 时间:
2014-06-16 07:32:47
阅读次数:
186
题意:给定b数列,计算有多少种数列 a1,a2,...,an 满足条件
a1*a2*...*an=b1*b2*…*bn (ai>1).
解法:处理出b数列中出现的所有质因子的数量记录在map中,然后进行容斥计算:
代码:/******************************************************
* author:xiefubao
********...
分类:
其他好文 时间:
2014-06-15 20:06:24
阅读次数:
191
题目
The count-and-say sequence is the sequence of integers beginning as follows:
1, 11, 21, 1211, 111221, ...
1 is read off as "one
1" or 11.
11 is read off as "two
1s" or 21.
21 i...
分类:
其他好文 时间:
2014-06-15 18:51:33
阅读次数:
220
Sequence:序列是一个数据对象,可以用来生成唯一的整数。是数据库里独立的对象,不依赖任何表,为oracle所特有。用来自动生成主键值,可以用sequence的地方:inert语句的子查询中,update的set等。创建序列
:Create sequence seqname —increamen...
分类:
数据库 时间:
2014-06-13 07:36:51
阅读次数:
338
原题地址:https://oj.leetcode.com/problems/count-and-say/题意:The
count-and-say sequence is the sequence of integers beginning as follows:1, 11,
21, 1211, 11...
分类:
编程语言 时间:
2014-06-13 06:23:26
阅读次数:
366
The count-and-say sequence is the sequence of
integers beginning as follows:1, 11, 21, 1211, 111221, ...1is read off as"one
1"or11.11is read off as"tw...
分类:
其他好文 时间:
2014-06-13 00:54:33
阅读次数:
376
当SQLite数据库中包含自增列时,会自动建立一个名为 sqlite_sequence
的表。这个表包含两个列:name和seq。name记录自增列所在的表,seq记录当前序号(下一条记录的编号就是当前序号加1)。如果想把某个自增列的序号归零,只需要修改
sqlite_sequence表就可以了。U...
分类:
数据库 时间:
2014-06-12 13:08:03
阅读次数:
210
用比对软件,如bwa, bowtie, 进行比对后产生的结果,一般为sam 或 bam
格式。bam是sam的二进制文件。下面用实例介绍一下sam文件格式:sam 分为headersection (@开头)和 alignment
section(一般分为11列), 下图为一个sam文件的前半部分:h...
分类:
其他好文 时间:
2014-06-10 16:44:04
阅读次数:
238