码迷,mamicode.com
首页 >  
搜索关键字:maximum subsequence    ( 5146个结果)
POJ-3693/HDU-2459 Maximum repetition substring 最多重复次数的子串(需要输出具体子串,按字典序)
http://acm.hdu.edu.cn/showproblem.php?pid=2459 之前hihocoder那题可以算出最多重复次数,但是没有输出子串。一开始以为只要基于那个,每次更新答案的时候按SA更新子串起始位置和长度就好了,但实际发现那个解法在计算重复次数的时候并不会遍历每一个合法串( ...
分类:其他好文   时间:2017-11-13 11:25:06    阅读次数:144
Educational Codeforces Round 32
A Local Extrema 水 B Buggy Robot 水 C K-Dominant Character 水 D Almost Identity Permutations 错排 水 E Maximum Subsequence 题解在这里 ...
分类:其他好文   时间:2017-11-12 16:25:56    阅读次数:190
Educational Codeforces Round 1D 【DFS求联通块】
http://blog.csdn.net/snowy_smile/article/details/49924965 D. Igor In the Museum time limit per test 1 second memory limit per test 256 megabytes input ...
分类:移动开发   时间:2017-11-12 15:33:36    阅读次数:173
leetcode149- Max Points on a Line- hard
Given n points on a 2D plane, find the maximum number of points that lie on the same straight line. 考数学和抠细节。O(n2)。每对点都要遍历。先固定第一个点,从第一个点开始跟后面每个点计算斜率,存到 ...
分类:其他好文   时间:2017-11-12 15:32:58    阅读次数:121
[LintCode] Binary Tree Maximum Path Sum
Given a binary tree, find the maximum path sum. The path may start and end at any node in the tree. Given a binary tree, find the maximum path sum. Th ...
分类:其他好文   时间:2017-11-12 12:33:03    阅读次数:161
Java-HashSet源码
HashSet注意事项: 对于HashSet中保存的对象,请注意正确重写其equals和hashCode方法,以保证放入的对象的唯一性。 ...
分类:编程语言   时间:2017-11-11 18:54:17    阅读次数:165
hdu2955 Robberies(java)
题目大意: 先是给出几组数据,每组数据第一行是总被抓概率p(最后求得的总概率不能大于他,否则被抓),然后是想抢的银行数n。然后n行,每行分别是该银行能抢的钱数m[i]和被抓的概率p[i],求在不被抓到的情况下能抢到的钱数; Output For each test case, output a li ...
分类:编程语言   时间:2017-11-11 18:52:53    阅读次数:241
阶乘分解质因子指数和
The factorial function, n! = 1·2·...·n, has many interesting properties. In this problem, we want to determine the maximum number of integer terms (ex ...
分类:其他好文   时间:2017-11-11 17:39:47    阅读次数:216
Educational Codeforces Round 32 E
E. Maximum Subsequence You are given an array a consisting of n integers, and additionally an integer m. You have to choose some sequence of indices b ...
分类:其他好文   时间:2017-11-11 17:38:51    阅读次数:135
leetcode53- Maximum Subarray- easy
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, ...
分类:其他好文   时间:2017-11-11 14:19:49    阅读次数:170
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!