码迷,mamicode.com
首页 >  
搜索关键字:maximum subsequence    ( 5146个结果)
[LeetCode] Maximum Subarray 最大子数组
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,...
分类:编程语言   时间:2015-03-30 11:10:46    阅读次数:154
csu 1553: Good subsequence (最长连续子序列)
http://acm.csu.edu.cn/OnlineJudge/problem.php?cid=2071&pid=6题意:有一个由n个数组成的序列 要求出一个满足 max-min#include#include#include#include#include#include#include...
分类:其他好文   时间:2015-03-30 01:11:45    阅读次数:132
Subsequence poj 3061 二分(nlog n)或尺取法(n)
SubsequenceTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 9236Accepted: 3701DescriptionA sequence of N positive integers (10 2 #include 3 .....
分类:其他好文   时间:2015-03-29 19:29:16    阅读次数:175
Distinct Subsequences
https://leetcode.com/problems/distinct-subsequences/Given a stringSand a stringT, count the number of distinct subsequences ofTinS.A subsequence of a ...
分类:其他好文   时间:2015-03-29 17:45:56    阅读次数:146
[LeetCode 55] Jump Game
题目链接: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 ...
分类:其他好文   时间:2015-03-29 13:40:39    阅读次数:126
LeetCode| Best time to buy and sell stock 2
题目: 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 complete as many transactions as you like ...
分类:其他好文   时间:2015-03-29 12:22:52    阅读次数:130
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 complete as many transactions as you like (ie, buy one an...
分类:其他好文   时间:2015-03-29 12:16:23    阅读次数:108
Best time to buy and sell stock 3 --- LeetCode
题目: 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 complete at most two transactions. Note...
分类:其他好文   时间:2015-03-29 12:14:11    阅读次数:150
backlog参数与SYN Flood攻击
在linux网络编程中,使用listen函数监听套接字,在linux中man其用法,第2个参数解释如下: The backlog argument defines the maximum length to which the queue of pending connections for sockfd may grow. ?...
分类:其他好文   时间:2015-03-29 09:32:29    阅读次数:229
湖南多校对抗赛(2015.03.28) E Longest Increasing Subsequence Again
题意:给你一个序列,问你删除掉连续的一段,使得剩下的序列的最长上升字串最大,问你这个最大值。解题思路:分段dp, dp[i][0] ,dp[i][1] , 0表示前面没有切过,只能从前一个数的0状态得到,1状态表示前面已经切过了,能从前一个的1状态得到,也能从 在他前面的比他值小的dp[j][0]....
分类:其他好文   时间:2015-03-29 09:24:58    阅读次数:128
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!