码迷,mamicode.com
首页 >  
搜索关键字:largest    ( 1413个结果
[leetcode]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 ...
分类:其他好文   时间:2018-03-06 14:43:19    阅读次数:149
[POJ 2559]Largest Rectangle in a Histogram 题解(单调栈)
[POJ 2559]Largest Rectangle in a Histogram Description A histogram is a polygon composed of a sequence of rectangles aligned at a common base line. Th ...
分类:其他好文   时间:2018-02-27 19:30:37    阅读次数:194
【easy】479. Largest Palindrome Product
Find the largest palindrome made from the product of two n-digit numbers Since the result could be very large, you should return the largest palindrom ...
分类:其他好文   时间:2018-02-12 16:49:24    阅读次数:130
Return Largest Numbers in Array
<-- 实现要求 --> 找出多个数组中的最大数 右边大数组中包含了4个小数组,分别找到每个小数组中的最大值,然后把它们串联起来,形成一个新数组。 提示:你可以用for循环来迭代数组,并通过arr[i]的方式来访问数组的每个元素。 当你完成不了挑战的时候,记得开大招'Read-Search-Ask' ...
分类:其他好文   时间:2018-02-12 11:30:15    阅读次数:161
【Leetcode】179. Largest Number
Given a list of non negative integers, arrange them such that they form the largest number. For example, given [3, 30, 34, 5, 9], the largest formed n ...
分类:其他好文   时间:2018-02-08 00:25:08    阅读次数:123
PAT 1094. The Largest Generation (层级遍历)
A family hierarchy is usually presented by a pedigree tree where all the nodes on the same level belong to the same generation. Your task is to find t ...
分类:其他好文   时间:2018-02-05 12:42:16    阅读次数:158
1094. The Largest Generation (25)
A family hierarchy is usually presented by a pedigree tree where all the nodes on the same level belong to the same generation. Your task is to find t ...
分类:其他好文   时间:2018-02-01 00:15:36    阅读次数:168
BZOJ1591:[Usaco2008 Dec]Largest Fence 最大的围栏——题解
http://www.lydsy.com/JudgeOnline/problem.php?id=1591 有n(5≤n≤250)个栅栏点,FJ需要围成一个栅栏圈,这个圈是一个凸包并且凸包上的点最多。 这题题解写的如此之玄幻,题目看起来如此之不可做…… 然而实际很简单……看了半天题解发现不如看他代码。 ...
分类:其他好文   时间:2018-01-31 22:10:01    阅读次数:169
【leetcode】215. Kth Largest Element in an Array
Find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element. For exam ...
分类:其他好文   时间:2018-01-31 20:08:50    阅读次数:200
[LeetCode] Largest Number At Least Twice of Others 至少是其他数字两倍的最大数
In a given integer array nums, there is always exactly one largest element. Find whether the largest element in the array is at least twice as much as ...
分类:其他好文   时间:2018-01-31 01:04:52    阅读次数:128
1413条   上一页 1 ... 28 29 30 31 32 ... 142 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!