码迷,mamicode.com
首页 >  
搜索关键字:maximum product suba    ( 9145个结果
[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】Max Points on a Line
Max Points on a LineGivennpoints on a 2D plane, find the maximum number of points that lie on the same straight line.点和方向确定一条直线。需要两重循环,第一重循环遍历起始点a,第二重...
分类:其他好文   时间:2014-07-06 18:21:01    阅读次数:175
【题解】【数组】【Prime and composite numbers】【Codility】Peaks
Divide an array into the maximum number of same((-))sized blocks, each of which should contain an index P such that A[P - 1] A[P + 1].
分类:其他好文   时间:2014-07-06 15:30:31    阅读次数:465
【题解】【数组】【Prime and composite numbers】【Codility】Flags
Find the maximum number of flags that can be set on mountain peaks.
分类:其他好文   时间:2014-07-06 15:07:09    阅读次数:371
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-05 20:43:45    阅读次数:246
Scurm 术语
角色 Product Owner Scrum Master Team 工件(Backlog) Product Backlog Sprint Backlog Burndown Backlog 活动 Sprint Panning Meeting D...
分类:其他好文   时间:2014-07-04 00:01:58    阅读次数:216
993 - Product of digits
题目:993 - Product of digits 题目大意:将一个数通过因式分解变成另一个由因子组成的最小的数。 解题思路:因为要组成数,所以因子只需要从 2 - 9,又因为需要最小的数,所以因式分解从最大的因子开始,这样位数最少,最后输出从最小的因子输出,保证最小。1的话需要特判,因为所有的数都有因子1. 代码: #include #include co...
分类:其他好文   时间:2014-07-03 18:21:51    阅读次数:155
[leetcode] Maximum Depth of Binary Tree
Given a binary tree, find its maximum depth.
分类:其他好文   时间:2014-07-03 13:19:33    阅读次数:251
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!