码迷,mamicode.com
首页 >  
搜索关键字:maximum subsequence    ( 5146个结果)
Longest Common Subsequence Problem
Thelongest common subsequence(LCS)problemis the problem of finding the longestsubsequencecommon to all sequences in a set of sequences (often just two...
分类:其他好文   时间:2015-07-30 07:10:57    阅读次数:120
hdoj-1159-Common Subsequence【动态规划求最长公共子序列】
Common Subsequence Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 28152 Accepted Submission(s): 12556 Problem Description A subsequence o...
分类:其他好文   时间:2015-07-29 21:23:45    阅读次数:121
LeetCode 5_Longest Palindromic Substring
LeetCode 5_Longest Palindromic Substring  题目描述: Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique ...
分类:其他好文   时间:2015-07-29 15:57:00    阅读次数:131
【LeetCode-面试算法经典-Java实现】【053-Maximum Subarray(最大子数组和)】
【053-Maximum Subarray(最大子数组和)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  Find the contiguous subarray within an array (containing at least one number) which has the largest sum.   For example, given the ar...
分类:编程语言   时间:2015-07-29 07:55:12    阅读次数:131
LeetCode Maximum Product Subarray(枚举)
LeetCode Maximum Product SubarrayDescriptionGiven a sequence of integers S = {S1, S2, . . . , Sn}, you should determine what is the value o...
分类:其他好文   时间:2015-07-28 22:54:07    阅读次数:195
Maximum Depth of Binary Tree
/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x...
分类:其他好文   时间:2015-07-28 17:59:29    阅读次数:96
LeetCode#5 Longest Palindromic Substring
Problem Definition:Given a string S, find the longest palindromic substring in S.You may assume that the maximum length of S is 1000, and there exists...
分类:其他好文   时间:2015-07-28 17:22:12    阅读次数:111
uva11059 Maximum Product
题目描述: 求连续子序列,使乘积最大 解题思路:暴力枚举,枚举所有可能的序列 #include #define MAXN 20 using namespace std; int d[MAXN]; int main() { int t=0; int n; while(scanf("%d",&n)==1) { t++; ...
分类:其他好文   时间:2015-07-28 10:47:40    阅读次数:111
C - The C Answer (2nd Edition) - Exercise 1-18
/* Write a program to remove trailing blanks and tabs from each line of input, and to delete entirely blank lines. */ #include #define MAXLINE 1000 /* maximum input line size */ int getl...
分类:其他好文   时间:2015-07-27 23:04:22    阅读次数:139
C - The C Answer (2nd Edition) - Exercise 1-19
/* Write a function reverse(s) that reverses the character string s. Use it to write a program that reverses its input a line at a time. */ #include #define MAXLINE 1000 /* maximum input l...
分类:其他好文   时间:2015-07-27 23:00:48    阅读次数:135
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!