码迷,mamicode.com
首页 >  
搜索关键字:maximum subsequence    ( 5146个结果)
[LeetCode] 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 longes...
分类:其他好文   时间:2015-04-29 01:54:46    阅读次数:113
53-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,...
分类:其他好文   时间:2015-04-28 11:34:29    阅读次数:102
leetcode || 124、Binary Tree Maximum Path Sum
problem: Given a binary tree, find the maximum path sum. The path may start and end at any node in the tree. For example: Given the below binary tree, 1 / 2 3 ...
分类:其他好文   时间:2015-04-27 13:20:29    阅读次数:130
leetcode || 122、Best Time to Buy and Sell Stock II
problem: 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 ...
分类:其他好文   时间:2015-04-27 11:22:20    阅读次数:123
leetcode || 123、Best Time to Buy and Sell Stock III
problem: 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...
分类:其他好文   时间:2015-04-27 11:18:37    阅读次数:134
Binary Tree Maximum Path Sum
https://leetcode.com/problems/binary-tree-maximum-path-sum/Given a binary tree, find the maximum path sum.The path may start and end at any node in th...
分类:其他好文   时间:2015-04-26 22:23:56    阅读次数:174
socket 连接关闭的TIME_WAIT状态的理由
MSL就是maximum segment lifetime(最大分节生命期),这是一个IP数据包能在互联网上生存的最长时间,超过这个时间将在网络中消失TIME_WAIT两点原因:1、TCP分节可能由于路由器异常而“迷途”,在迷途期间,TCP发送端可能因确认超时而重发这个分节,迷途的分节在路由器修复后...
分类:其他好文   时间:2015-04-26 21:13:50    阅读次数:146
Leetcode: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 longest palindromic substring. 基本思路:回文字符串显然有个特征是沿...
分类:其他好文   时间:2015-04-26 16:51:58    阅读次数:142
LightOJ 1085 - All Possible Increasing Subsequences (离散化+树状数组+dp)
1085 - All Possible Increasing SubsequencesPDF (English)StatisticsForumTime Limit:3 second(s)Memory Limit:64 MBAn increasing subsequence from a sequen...
分类:编程语言   时间:2015-04-26 01:19:26    阅读次数:236
Java [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 l...
分类:编程语言   时间:2015-04-25 14:54:13    阅读次数:145
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!