Common Subsequence
Time Limit : 2000/1000ms (Java/Other) Memory Limit : 20000/10000K (Java/Other)
Total Submission(s) : 1 Accepted Submission(s) : 1
Problem Description
A subsequence of a give...
分类:
其他好文 时间:
2015-08-10 12:13:07
阅读次数:
160
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 43149
Accepted: 17482
Description
A subsequence of a given sequence is the given sequence with some elements (...
分类:
其他好文 时间:
2015-08-10 12:06:14
阅读次数:
108
Problem Description
A subsequence of a given sequence is the given sequence with some elements (possible none) left out. Given a sequence X = another sequence Z = is a subsequence of X if there e...
分类:
其他好文 时间:
2015-08-10 12:01:30
阅读次数:
127
Common SubsequenceTime Limit:1000MSMemory Limit:10000KTotal Submissions:43211Accepted:17526DescriptionA subsequence of a given sequence is the given s...
分类:
其他好文 时间:
2015-08-10 11:53:00
阅读次数:
172
Longest Ordered Subsequence
Time Limit: 2000MS
Memory Limit: 65536K
Total Submissions: 38980
Accepted: 17119
Description
A numeric sequence of ai is ordered if a1 a2 ...
分类:
其他好文 时间:
2015-08-10 09:25:24
阅读次数:
82
Given n points
on a 2D plane, find the maximum number of points that lie on the same straight line.
分析:
任意一条直线都可以表述为
y = ax + b
假设,有两个点(x1,y1), (x2,y2),如果他们都在这条直线上则有
y1 = kx1 +b...
分类:
其他好文 时间:
2015-08-09 20:47:26
阅读次数:
98
题目描述:Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array [?2,1,?3,4,?...
分类:
编程语言 时间:
2015-08-09 20:16:09
阅读次数:
134
经典的最长公共子序列问题,我刚开始用string敲的,就是为了练练手,没想到竟然wa了,还以为我用错了呢。。。换了字符数还是wa。。。真无语,这么简单的题快把我弄糊涂了,后来听人说是输入可能有空格。。。这是巨坑啊,题上都没说清楚,白白wa了几发。。。就是设一个数组d[i][j]遍历两个字符数组当a[i]==b[j]的时候d[i][j]=d[i-1][j-1]+1。不相等的时候就是d[i][j]=m...
分类:
其他好文 时间:
2015-08-09 17:18:31
阅读次数:
123
Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest pa...
分类:
其他好文 时间:
2015-08-09 01:57:22
阅读次数:
134
Codeforces 566F 的传送门As you must know, the maximum clique problem in an arbitrary graph is NP-hard. Nevertheless, for some graphs of specific kinds it can be solved effectively.Just in case, let us remi...
分类:
其他好文 时间:
2015-08-08 19:59:04
阅读次数:
133