码迷,mamicode.com
首页 >  
搜索关键字:maximum subsequence    ( 5146个结果)
湖南多校对抗赛(2015.03.28) G Good subsequence
题意:找到一个序列中极值 6 #include 7 #include 8 #include 9 #include10 #include11 #include12 #include13 #include14 #include15 #include16 #include17 #include18 #in...
分类:其他好文   时间:2015-03-29 09:25:48    阅读次数:120
中南OJ1551: Longest Increasing Subsequence Again(分块+离散化线段树)
1551: Longest Increasing Subsequence Again Time Limit: 2 Sec  Memory Limit: 256 MB Submit: 29  Solved: 15 [Submit][Status][Web Board] Description Give you a numeric sequence. If you can d...
分类:其他好文   时间:2015-03-28 23:18:21    阅读次数:432
Distinct Subsequences
Distinct Subsequences问题:Given a stringSand a stringT, count the number of distinct subsequences ofTinS.A subsequence of a string is a new string which...
分类:其他好文   时间:2015-03-28 21:45:13    阅读次数:167
LeetCode[Dynamic Programming]: Maximum Product Subarray
Find the contiguous subarray within an array (containing at least one number) which has the largest product.  For example, given the array [2,3,-2,4],  the contiguous subarray [2,3] has the largest ...
分类:其他好文   时间:2015-03-27 22:28:08    阅读次数:211
poj1458——dp,lcs
poj1458——dp,lcsCommon SubsequenceTime Limit:1000MSMemory Limit:10000KTotal Submissions:40529Accepted:16351DescriptionA subsequence of a given sequence...
分类:其他好文   时间:2015-03-22 01:38:48    阅读次数:140
LeetCode Algorithm 05
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-03-22 00:18:36    阅读次数:134
[Leetcode] Maximum Gap
Maximum GapGiven an unsorted array, find the maximum difference between the successive elements in its sorted form.Try to solve it in linear time/spac...
分类:其他好文   时间:2015-03-21 16:49:56    阅读次数:121
Maximum Gap
Given an unsorted array, find the maximum difference between the successive elements in its sorted form.Try to solve it in linear time/space.Return 0 ...
分类:其他好文   时间:2015-03-21 12:39:00    阅读次数:177
Maximum Product Subarray
Maximum Product Subarray问题:Find the contiguous subarray within an array (containing at least one number) which has the largest product.For example, gi...
分类:其他好文   时间:2015-03-21 11:03:59    阅读次数:135
[POJ] 3061 Subsequence (尺取法)
题目地址:http://poj.org/problem?id=3061方法一:因为元素都大于0,所以维护前缀和sum[i],一定有sum[k]>sum[i](k>i)。这样子序列起点s确定以后,用二分查找确定使序列和不小于s的结尾t的最小值。 时间复杂度o(nlogn)。 1 #include...
分类:其他好文   时间:2015-03-21 11:01:09    阅读次数:109
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!