码迷,mamicode.com
首页 >  
搜索关键字:maximum    ( 4142个结果
[LeetCode] 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 complete a...
分类:其他好文   时间:2014-07-07 08:19:36    阅读次数:151
【题解】【数组】【DP】【Codility】MaxSliceSum & MaxDoubleSliceSum
Find a maximum sum of a compact subsequence of array elements and any double slice.
分类:其他好文   时间:2014-07-06 20:44:45    阅读次数:351
【题解】【数组】【DP】【Codility】Best Time to Buy and Sell Stock
Given a log of stock prices compute the maximum possible earning.
分类:其他好文   时间:2014-07-06 20:04:21    阅读次数:259
[leetcode] Maximum Depth of Binary Tree
Given a binary tree, find its maximum depth.
分类:其他好文   时间:2014-07-03 13:19:33    阅读次数:251
Leetcode 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.For example:Given the below binary tree, 1 ...
分类:其他好文   时间:2014-07-02 21:13:05    阅读次数:170
[LeetCode]Maximum Depth of Binary Tree
[LeetCode]Maximum Depth of Binary Tree...
分类:其他好文   时间:2014-07-02 08:09:01    阅读次数:175
LeetCode: Max Points on a Line [149]
【题目】 Given n points on a 2D plane, find the maximum number of points that lie on the same straight line. 【题意】 给定一堆点,要求找出一条之前上的最大点数 【思路】 没什么好的方法,从每个点P出发,遍历所有的情况 从每个点P出发,斜率相同的点即为统一之前上的点 注意两种特殊情况: 1. 两个点重合(即为同一个点) ...
分类:其他好文   时间:2014-07-02 06:52:06    阅读次数:171
如何设置Eclipse工作区默认编辑宽度
1)打开Window => Preferences窗口2)打开Formatter属性页从Java => CodeStyle => Formatter3) 单击New创建一个自己的Formatter4)选择Line Wrapping属性页,并设置Maximum line width 为1605)然后一...
分类:系统相关   时间:2014-07-01 13:52:45    阅读次数:227
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...
分类:其他好文   时间:2014-06-30 22:43:45    阅读次数:294
Max Points on a Line
题目 Given n points on a 2D plane, find the maximum number of points that lie on the same straight line. 方法 每次选择一个点,和其他n - 1个点,进行判断,统计最多的。 double computeSlope(Point a, Point b) { ...
分类:其他好文   时间:2014-06-30 15:48:45    阅读次数:184
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!