码迷,mamicode.com
首页 >  
搜索关键字:maximum    ( 4142个结果
Maximum Product Subarray - LeetCode
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...
分类:其他好文   时间:2015-11-04 09:59:24    阅读次数:132
Longest Palindromic Substring 解答
QuestionGiven a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique lo...
分类:其他好文   时间:2015-11-04 01:56:54    阅读次数:182
Best Time to Buy and Sell Stock II
题目:Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You may complet...
分类:其他好文   时间:2015-11-03 13:48:38    阅读次数:191
LeetCode OJ: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-11-02 00:00:09    阅读次数:277
NOIP前夕:noi.openjudge,Maximum sum
Maximum sum总Time Limit:1000msMemory Limit:65536kBDescriptionGiven a set of n integers: A={a1, a2,..., an}, we define a function d(A) as below: ...
分类:其他好文   时间:2015-11-01 20:54:46    阅读次数:209
C# progressbar 用法
progressBar1.Maximum = 100;//设置最大长度值 progressBar1.Value = 0;//设置当前值 progressBar1.Step = 5;//设置没次增长多少for (int i = 0; i < 10; i++)//循环{ System.T...
分类:Windows程序   时间:2015-10-31 17:00:51    阅读次数:251
149. Max Points on a Line (Array; Greedy)
Givennpoints on a 2D plane, find the maximum number of points that lie on the same straight line.思路:对于某一点来说,在经过该点的直线中选取节点数量最多的直线;对于全局来说,必定是某个局部点满足条件的直...
分类:其他好文   时间:2015-10-30 20:35:54    阅读次数:289
LeetCode OJ: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,...
分类:编程语言   时间:2015-10-30 12:23:19    阅读次数:165
Longest Palindromic Substring
问题链接:https://leetcode.com/problems/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 ...
分类:其他好文   时间:2015-10-30 02:21:57    阅读次数:199
LeetCode OJ:Binary Tree Maximum Path Sum(二叉树最大路径和)
Given a binary tree, find the maximum path sum.For this problem, a path is defined as any sequence of nodes from some starting node to any node in the...
分类:其他好文   时间:2015-10-28 21:05:06    阅读次数:186
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!