码迷,mamicode.com
首页 >  
搜索关键字:largest    ( 1413个结果
LeetCode #53 Maximum Subarray
Description Find the contiguous subarray within an array (containing at least one number) which has the largest sum. Input Output 思路 CLRS 第四章练习题 4.1-5 ...
分类:其他好文   时间:2018-01-26 00:22:29    阅读次数:208
uva 1463 - Largest Empty Circle on a Segment(二分+三分+几何)
题目链接:uva 1463 - Largest Empty Circle on a Segment 二分半径,对于每一个半径,用三分求出线段到线段的最短距离,依据最短距离能够确定当前R下每条线段在[0,L]上的可行区间,存在一个点被可行区间覆盖n次。 #include <cstdio> #inclu ...
分类:其他好文   时间:2018-01-22 19:32:19    阅读次数:191
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,2, ...
分类:其他好文   时间:2018-01-20 21:27:02    阅读次数:149
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,2, ...
分类:其他好文   时间:2018-01-19 00:24:53    阅读次数:185
[leetcode-738-Monotone Increasing Digits]
Given a non-negative integer N, find the largest number that is less than or equal to N with monotone increasing digits. (Recall that an integer has m ...
分类:其他好文   时间:2018-01-15 00:26:59    阅读次数:226
215. Kth Largest Element in an Array 第K大的数
class Solution { public: int quicksort(vector& nums, int start, int end, int k){ int i = start; int j = end; int x = nums[i]; while (ix && ik-1) //出错的... ...
分类:其他好文   时间:2018-01-14 13:08:06    阅读次数:126
The Largest Clique (uva11324)
求图的缩点 ...
分类:其他好文   时间:2018-01-07 14:25:12    阅读次数:99
LN : leetcode 215 Kth Largest Element in an Array
lc 215 Kth Largest Element in an Array [215 Kth Largest Element in an Array][1] Find the kth largest element in an unsorted array. Note that it is the ...
分类:其他好文   时间:2018-01-04 15:04:33    阅读次数:126
[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-03 22:36:41    阅读次数:210
[leetcode-748-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-01 20:41:23    阅读次数:170
1413条   上一页 1 ... 29 30 31 32 33 ... 142 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!