码迷,mamicode.com
首页 >  
搜索关键字:maximum subsequence    ( 5146个结果)
Common Subsequence
题目链接:http://acm.hust.edu.cn/vjudge/problem/visitOriginUrl.action?id=17083题意: 输入两个字符串,找到最长的连续子序列的元素个数。 案例: Sample Input abcfbc abfcab ...
分类:其他好文   时间:2015-08-16 21:03:47    阅读次数:122
[LeetCode] Maximum Subarray Sum
Dynamic ProgrammingThere is a nice introduction to the DP algorithm in thisWikipedia article. The idea is to maintain a running maximumsmaxand a curre...
分类:其他好文   时间:2015-08-16 16:22:54    阅读次数:128
[LeetCode][JavaScript]Max Points on a Line
Max Points on a LineGivennpoints on a 2D plane, find the maximum number of points that lie on the same straight line.求有多少点在一直线上。粗暴地用二重循环遍历。每一轮都构造一个哈希表...
分类:编程语言   时间:2015-08-16 00:39:26    阅读次数:145
pat(A) 1007. Maximum Subsequence Sum(和最大子段)
代码: #include #include using namespace std; int a[10005]; int main() { int n; while(scanf("%d",&n)==1) { int flag=0; for(int i=0;i<n;i++) { scanf("%d"...
分类:其他好文   时间:2015-08-15 23:06:15    阅读次数:180
【LeetCode】104 - Maximum Depth of Binary Tree
Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest le...
分类:其他好文   时间:2015-08-15 22:42:42    阅读次数:138
Longest Palindromic Substring
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-15 21:22:37    阅读次数:112
[LeetCode] Maximum Depth of Binary Tree
Well, this problem has the highest acceptance rate among all OJ problems. It has a very easy 1-line reursive solution. I am not sure whether this one ...
分类:其他好文   时间:2015-08-15 19:49:12    阅读次数:131
poj3061(Subsequence)尺取法
Description A sequence of N positive integers (10 < N < 100 000), each of them less than or equal 10000, and a positive integer S (S < 100 000 000) are given. Write a program to find the minimal ...
分类:其他好文   时间:2015-08-15 18:27:35    阅读次数:153
周赛F题 POJ 1458(最长公共子序列)
F -FTime Limit:1000MSMemory Limit:10000KB64bit IO Format:%I64d & %I64uDescriptionA subsequence of a given sequence is the given sequence with some ele...
分类:其他好文   时间:2015-08-15 18:10:19    阅读次数:108
POJ 1458 Common Subsequence
Description:A subsequence of a given sequence is the given sequence with some elements (possible none) left out. Given a sequence X = another sequenc....
分类:其他好文   时间:2015-08-15 18:05:44    阅读次数:104
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!