码迷,mamicode.com
首页 >  
搜索关键字:maximum subsequence    ( 5146个结果)
poj-2533 Longest Ordered Subsequence 【最长上升子序列】
题目链接:http://poj.org/problem?id=2533 Longest Ordered Subsequence Time Limit: 2000MS   Memory Limit: 65536K Total Submissions: 35929   Accepted: 15778 Description A ...
分类:其他好文   时间:2015-03-01 18:33:22    阅读次数:171
Leetcode: Best Time to Buy and Sell Stock IV
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 complet...
分类:其他好文   时间:2015-03-01 13:13:19    阅读次数:119
IP分片和TCP分片 MTU和MSS
前期对分片分段概念有点不清晰,看到一篇好文,mark本文转自:http://blog.csdn.net/keyouan2008/archive/2010/08/27/5843388.aspx1,MTU(Maximum Transmission Unit,MTU),最大传输单元(1)以太网和802.3...
分类:其他好文   时间:2015-03-01 13:07:32    阅读次数:169
[LeetCode]55.Jump Game
题目Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximum jump length at that position.Determine if you a...
分类:其他好文   时间:2015-02-28 23:05:45    阅读次数:276
Maximum Subarray
本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/43989997 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,?1,2,1,?5,4], the...
分类:其他好文   时间:2015-02-28 21:39:28    阅读次数:164
[LeetCode]Max Points on a Line
Given n points on a 2D plane, find the maximum number of points that lie on the same straight line. 以某个点为基点,求得与其他的点的斜率并记录在map,注意两点 1.斜率可能为无穷 2.如果遍历到的点与基点在相同位置则所有斜率的点都要加上1 /** * Definition f...
分类:其他好文   时间:2015-02-27 21:34:46    阅读次数:227
最长公共子序列
最长公共子序列 时间限制:3000 ms  |  内存限制:65535 KB 难度:3 描述咱们就不拐弯抹角了,如题,需要你做的就是写一个程序,得出最长公共子序列。 tip:最长公共子序列也称作最长公共子串(不要求连续),英文缩写为LCS(Longest Common Subsequence)。其定义是,一个序列 S ,如果分别是两个或多个已知序列的子序列,且是所有符合...
分类:其他好文   时间:2015-02-27 17:09:36    阅读次数:160
hdu 1159 Common Subsequence(最长公共子序列 DP)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1159Common SubsequenceTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)To...
分类:其他好文   时间:2015-02-26 22:51:37    阅读次数:207
[LeetCode] MaximumDepth 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-02-26 21:32:39    阅读次数:152
hdu 4635 强连通分量+缩点
http://acm.hdu.edu.cn/showproblem.php?pid=4635 Problem Description Give a simple directed graph with N nodes and M edges. Please tell me the maximum number of the edges you can add that the gr...
分类:其他好文   时间:2015-02-26 18:35:11    阅读次数:148
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!