码迷,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,?5,4], the contiguous subarray [4,?1,2,1] h...
分类:其他好文   时间:2015-03-30 23:11:53    阅读次数:188
Leetcode: 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-30 23:10:30    阅读次数:175
[Leetcode] 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-03-30 22:49:58    阅读次数:162
[Leetcode][Python]53: Maximum Subarray
# -*- coding: utf8 -*-'''__author__ = 'dabay.wang@gmail.com'53: Maximum Subarrayhttps://leetcode.com/problems/maximum-subarray/Find the contiguous sub...
分类:编程语言   时间:2015-03-30 22:30:08    阅读次数:195
CSUOJ 1551 Longest Increasing Subsequence Again
1551: LongestIncreasingSubsequence AgainTime Limit:2 SecMemory Limit:256 MBSubmit:75Solved:52DescriptionGive you a numeric sequence. If you can demoli...
分类:其他好文   时间:2015-03-30 21:01:19    阅读次数:147
DP(dynamic programming)之LIS(longest increasing subsequence)问题(转)
今天回顾WOJ1398,发现了这个当时没有理解透彻的算法。看了好久好久,现在终于想明白了。试着把它写下来,让自己更明白。最长递增子序列,Longest Increasing Subsequence 下面我们简记为 LIS。排序+LCS算法 以及 DP算法就忽略了,这两个太容易理解了。假设存在一个序列...
分类:其他好文   时间:2015-03-30 18:08:38    阅读次数:127
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 lengt...
分类:其他好文   时间:2015-03-30 16:36:02    阅读次数:117
fzu 2037 Maximum Value Problem
http://acm.fzu.edu.cn/problem.php?pid=2037思路:找规律,找出递推公式f[n]=f[n-1]*n+(n-1)!,另一个的结果也是一个递推,s[n]=s[n-1]+1/n; 1 #include 2 #include 3 #include 4 #defin...
分类:其他好文   时间:2015-03-30 12:53:31    阅读次数:128
dmidecode 硬件
dmidecode -t Memory #查内存 Maximum Capacity: 4 GB #最大4G Number Of Devices: 2 #2个插槽服务器到底能扩展到多大的内存? #man一下 dmidecode就可以看到 每个参数前面都有个数字#dmidecode -t 16如果是4*...
分类:其他好文   时间:2015-03-30 12:48:45    阅读次数:189
leetcode || 45、 Jump Game II
problem: 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 posi...
分类:其他好文   时间:2015-03-30 11:19:34    阅读次数:93
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!