码迷,mamicode.com
首页 >  
搜索关键字:maximum subsequence    ( 5146个结果)
Best Time to Buy and Sell Stock with Cooldown
题目:Say you have an array for which the ith element is the price of a given stock on day i.Design an algorithm to find the maximum profit. You may comp...
分类:其他好文   时间:2015-11-28 22:55:16    阅读次数:228
[Leetcode] Longest Palindromic Substring
问题:Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique lon...
分类:其他好文   时间:2015-11-27 17:11:12    阅读次数:131
SPOJ LIS2 Another Longest Increasing Subsequence Problem 三维偏序最长链 CDQ分治
Another Longest Increasing Subsequence ProblemTime Limit: 20 SecMemory Limit: 256 MB题目连接http://acm.hust.edu.cn/vjudge/problem/visitOriginUrl.action?id...
分类:其他好文   时间:2015-11-26 23:07:13    阅读次数:198
Best Time to Buy and Sell Stock III
题目:Say you have an array for which the ith element is the price of a given stock on day i.Design an algorithm to find the maximum profit. You may comp...
分类:其他好文   时间:2015-11-26 15:08:16    阅读次数:179
Best Time to Buy and Sell Stock II
题目:Say you have an array for which the ith element is the price of a given stock on day i.Design an algorithm to find the maximum profit. You may comp...
分类:其他好文   时间:2015-11-26 14:48:48    阅读次数:128
6、EIGRP配置实验之负载均衡
1、实验拓扑2、负载均衡原理等价负载均衡:默认情况下EIGRP只支持等价负载均衡,默认支持4条线路的等价负载均衡,可以通过showipprotocols查看,最大可以支持16条线路的等价负载均衡,可以在EIGRP路由进程下通过maximum-paths16修改负载均衡线路条数。不等价负载均衡:不等价负..
分类:其他好文   时间:2015-11-25 19:39:15    阅读次数:227
RAM区间最值
RMQ (Range Minimum/Maximum Query)问题是指:对于长度为n的数列A,回答若干询问RMQ(A,i,j)(i,jaa[j] then min:=aa[j]; write(min,' '); continue; end; for j:=((t1-1)*z+tt1) t...
分类:其他好文   时间:2015-11-24 21:08:44    阅读次数:230
RMQ算法讲解
RMQ算法引入:例1、题目描述输入N个数和M次询问,每次询问一个区间[L,R],求第L个数到R个数之间的最大值。第一种方法:大暴力之术。 但是……时间复杂度最坏会达到 $O(NM)$,一半左右的点绝对爆T。所以,引入了————RMQ!RMQ:Range Maximum(Minimum) Query....
分类:编程语言   时间:2015-11-24 14:50:42    阅读次数:174
算法作业6 动态规划 - 最长公共子串问题
问题描述:Given 2 sequences, X = x1,...,xm and Y = y1,...,yn, find a common subsequence whose length is maximum. Subsequence need not be consecutive, but m...
分类:编程语言   时间:2015-11-23 13:13:45    阅读次数:207
lintcode 最长上升连续子序列 II(二维最长上升连续序列)
题目链接:http://www.lintcode.com/zh-cn/problem/longest-increasing-continuous-subsequence-ii/最长上升连续子序列 II 给定一个整数矩阵(其中,有 n 行, m 列),请找出矩阵中的最长上升连续子序列。(最长上升连.....
分类:其他好文   时间:2015-11-22 21:44:59    阅读次数:231
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!