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
sequence 序列序列是一组有顺序的元素的集合序列有两种:tuple(定值表;也翻译为元组)和list(表)>>>s1 = (2, 1.3, 'love', 5.6, 9, 12, False) # s1是一个tuple>>>s2 = [True, 5, 'smile'] # s2是一个list...
分类:
编程语言 时间:
2014-09-20 01:07:56
阅读次数:
204
[leetcode]Given an unsorted array of integers, find the length of the longest consecutive elements sequence....
分类:
其他好文 时间:
2014-09-19 12:09:45
阅读次数:
167
//导入命令impdp 用户/密码@数据库链接 directory=数据库中映射路径 schemas=原用户 remap_schema=原用户:现用户 remap_tablespace=原表空间:现表空间(如果有多个表空间,就逗号分开)logfile= 日志文件dumpfile=数据文问题处理:1....
分类:
其他好文 时间:
2014-09-19 11:28:15
阅读次数:
180
题目描述:
Given an increasing sequence S of N integers, the median is the number at the middle position. For example, the median of S1={11, 12, 13, 14} is 12, and the median of S2={9, 10, 15, 16, 17...
分类:
其他好文 时间:
2014-09-18 23:50:54
阅读次数:
237
POJ 3017 Cut the Sequence (单调队列优化DP)
ACM
题目地址:
POJ 3017 Cut the Sequence
题意:
将一个由N个数组成的序列划分成若干段,要求每段数字的和不超过M,求【每段的最大值】的和 的最小的划分方法,输出这个最小的和。
分析:
方程是:dp[i] = min(dp[j]+maxsum[j+1][i]) ...
分类:
其他好文 时间:
2014-09-18 19:00:54
阅读次数:
165
想必Python的老鸟们对于Python里的iterable,sequence和iterators应该非常了解,且能做到运用自如。但是对于刚刚开始学习Python的新手们来说,这三个玩意儿估计够让他们抓狂的。先看一段有趣的代码: >>> l = ['a', 'b', 'c'] ...
分类:
编程语言 时间:
2014-09-18 14:42:54
阅读次数:
390
Fibonacci
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 9517
Accepted: 6767
Description
In the Fibonacci integer sequence, F0 = 0, F1 = 1, and Fn = F...
分类:
其他好文 时间:
2014-09-18 11:38:23
阅读次数:
148
动态规划基本题目,longest incresing sequence,找出序列中的最长递增子序列;例如给出序列{8,3,5,2,4,9,7,11},其中最长递增子序列为{3,5,9,11}或{3,5,7,11}或{3,4,9,11}或{3,4,7,11},子序列按元素递增,序列长度都为4;子问题:...
分类:
其他好文 时间:
2014-09-17 21:36:52
阅读次数:
231
题目链接:
huangjing
题意:
就是给了一个公式,然后求出第n项是多少。。。
思路:
题目中n的范围实在是太大,所以肯定直接递推肯定会超时,所以想到的是暴力打表,找循环节,但是也不是那么容易发现啊,所以这时候分析一下,因为最后都会mod7,所以总共有7X7总情况,即A 0,1,2,3,4,5,6,7,B也是如此,所以循环节为49,这么这个问题就解决了。。。
题目:...
分类:
其他好文 时间:
2014-09-17 16:51:42
阅读次数:
159