Description Given an array of integers, find a contiguous subarray which has the largest sum. Given an array of integers, find a contiguous subarray w ...
分类:
其他好文 时间:
2018-05-22 22:05:05
阅读次数:
136
标签: 可持久化线段树 题目描述 The h index of an author is the largest h where he has at least h papers with citations not less than h . Bobo has published n papers ...
分类:
其他好文 时间:
2018-05-19 00:42:41
阅读次数:
358
A.Easy h-index 题目描述 The h-index of an author is the largest h where he has at least h papers with citations not less than h.Bobo has published many pa ...
分类:
其他好文 时间:
2018-05-19 00:13:35
阅读次数:
552
题目描述: 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 m ...
分类:
其他好文 时间:
2018-05-15 01:45:02
阅读次数:
135
题目:和最大的子序列 难度:Medium 题目内容: Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and re ...
分类:
编程语言 时间:
2018-05-13 00:37:58
阅读次数:
311
Largest Submatrix of All 1’s Time Limit: 5000MS Memory Limit: 131072K Total Submissions: 7700 Accepted: 2779 Case Time Limit: 2000MS Description Given ...
分类:
其他好文 时间:
2018-05-10 21:50:50
阅读次数:
164
https://leetcode.com/problems/largest-number-at-least-twice-of-others/description/ ...
分类:
其他好文 时间:
2018-05-01 14:11:46
阅读次数:
144
该题解决方法是排序,我们只需要对两个数的对比方法进行改写就好了。改写思路为两个字符串 a 和 b, 如果 a + b 小于 b + a, 那么就交换位置。 代码如下: END ...
分类:
其他好文 时间:
2018-04-28 14:35:36
阅读次数:
139
在二叉树的每一行中找到最大的值。示例:输入: 1 / \ 3 2 / \ \ 5 3 9 输出: [1, 3, 9] 详见:https://leetcode.com/problems/find-largest-value-in-each-tree-row/description/ C++: ...
分类:
其他好文 时间:
2018-04-22 17:18:43
阅读次数:
135
[抄题]: 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 m ...
分类:
其他好文 时间:
2018-04-22 10:48:54
阅读次数:
188