给定一个非负整数数组和一个整数 m,你需要将这个数组分成 m 个非空的连续子数组。设计一个算法使得这 m 个子数组各自和的最大值最小。注意:数组长度 n 满足以下条件: 1 ≤ n ≤ 1000 1 ≤ m ≤ min(50, n)示例:输入:nums = [7,2,5,10,8]m = 2输出:1 ...
分类:
编程语言 时间:
2018-04-16 16:20:20
阅读次数:
150
You have a list of points in the plane. Return the area of the largest triangle that can be formed by any 3 of the points. Notes: 3 <= points.length < ...
分类:
其他好文 时间:
2018-04-13 17:57:02
阅读次数:
388
题目描述: Find the contiguous subarray within an array (containing at least one number) which has the largest product. For example, given the array [2,3,- ...
分类:
其他好文 时间:
2018-04-11 00:04:02
阅读次数:
155
World's Most Popular API Framework | Swagger https://swagger.io/ Swagger is the world’s largest framework of API developer tools for the OpenAPI Speci ...
分类:
其他好文 时间:
2018-04-09 15:00:08
阅读次数:
181
在未排序的数组中找到第 k 个最大的元素。请注意,它是数组有序排列后的第 k 个最大元素,而不是第 k 个不同元素。例如,给出 [3,2,1,5,6,4] 和 k = 2,返回 5。注意事项:你可以假设 k 总是有效的,1 ≤ k ≤ 数组的长度。 详见:https://leetcode.com/p ...
分类:
编程语言 时间:
2018-04-09 00:11:53
阅读次数:
173
格式:n=norm(A,p) 功能:norm函数可计算几种不同类型的矩阵范数,根据p的不同可得到不同的范数 以下是Matlab中help norm 的解释 NORM Matrix or vector norm. For matrices... NORM(X) is the largest singu ...
分类:
其他好文 时间:
2018-04-08 19:52:11
阅读次数:
129
给定一个非负整数的列表,重新排列它们的顺序把他们组成一个最大的整数。例如,给定 [3, 30, 34, 5, 9],最大的组成数是 9534330.注意: 结果可能非常大,所以您需要返回一个字符串而不是整数。 详见:https://leetcode.com/problems/largest-numb ...
分类:
编程语言 时间:
2018-04-07 17:50:59
阅读次数:
185
【题目描述】 Print numbers from 1 to the largest number with N digits by recursion. Notice It's pretty easy to do recursion like: recursion(i) { if i > larg ...
分类:
其他好文 时间:
2018-04-06 12:22:46
阅读次数:
163
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-04-05 15:51:33
阅读次数:
190
In a 2D grid from (0, 0) to (N-1, N-1), every cell contains a 1, except those cells in the given list mines which are 0. What is the largest axis-alig ...
分类:
其他好文 时间:
2018-03-31 00:41:53
阅读次数:
168