码迷,mamicode.com
首页 >  
搜索关键字:maximum subsequence    ( 5146个结果)
Make the Most (Hackerrank Codeagon)
题目链接Problem StatementCodenationis sendingNof its employees to a High Profile Business Conference and the goal is to cover maximum number of presentati...
分类:其他好文   时间:2015-01-25 16:35:51    阅读次数:202
最长公共子序列(LCS)问题 Longest Common Subsequence 与最长公告字串 longest common substr
问题描述:字符序列的子序列是指从给定字符序列中随意地(不一定连续)去掉若干个字符(可能一个也不去掉)后所形成的字符序列。令给定的字符序列X=“x0,x1,…,xm-1”,序列Y=“y0,y1,…,yk-1”是X的子序列,存在X的一个严格递增下标序列,使得对所有的j=0,1,…,k-1,有xij=yj...
分类:其他好文   时间:2015-01-25 16:30:43    阅读次数:253
[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-01-25 11:03:14    阅读次数:129
hdu 1159 Common Subsequence(最长公共子序列,DP)
题意:两个字符串,判断最长公共子序列的长度。思路:直接看代码,,注意边界处理代码:char s1[505], s2[505];int dp[505][505];int main(){ while(scanf("%s%s",s1,s2)!=EOF){ int l1=strlen(s...
分类:其他好文   时间:2015-01-24 22:44:01    阅读次数:126
Maximum Product Subarray
https://oj.leetcode.com/problems/maximum-product-subarray/Find the contiguous subarray within an array (containing at least one number) which has the ...
分类:其他好文   时间:2015-01-24 22:38:58    阅读次数:254
CSU 1354 Distinct Subsequences 求不相同子序列的和 dp
题目链接:点击打开链接 Description     Give a positive number, count the sum of the distinct subsequence of it, moreover, any subsequence should not contain leading zeroes except it is zero.    ...
分类:其他好文   时间:2015-01-24 20:08:06    阅读次数:240
非极大抑制(Non-Maximum Suppression)
最近在看RCNN和微软的SPP-net,其中涉及到Non-Maximum Suppression,论文中没具体展开,我就研究下了代码,这里做一个简单的总结。 假设从一个图像中得到了2000region proposals,通过在RCNN和SPP-net之后我们会得到2000*4096的一个特征矩阵,然后通过N的SVM来判断每一个region属于N的类的scores。其中,SVM的权重矩阵...
分类:其他好文   时间:2015-01-24 16:02:57    阅读次数:184
【leetcode】Maximum Gap
Maximum GapGiven an unsorted array, find the maximum difference between the successive elements in its sorted form.Try to solve it in linear time/spac...
分类:其他好文   时间:2015-01-24 15:44:53    阅读次数:201
Distinct Subsequences -- from Leetcode
Problem:Given a stringSand a stringT, count the number of distinct subsequences ofTinS.A subsequence of a string is a new string which is formed from ...
分类:其他好文   时间:2015-01-24 15:44:24    阅读次数:179
Max Points on a Line Leetcode Python
Given n points on a 2D plane, find the maximum number of points that lie on the same straight line. 这道题做的时候要考虑几个edge  1. infinity 2. same points 这里我们用hashtable将得到的slope存起来,最后每过一个点将其和其他所有点的组合成的sl...
分类:编程语言   时间:2015-01-24 11:45:17    阅读次数:208
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!