GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing leetcode.cn — 410. 分割数组的最大值 - 力扣(LeetCode) 题目描述 题目描述 题解 题解 提交记录 提交记录 困难 给定一个非负整数数组 返回分割后最小的和的最大值。 子数组 是数组中连续的部分。
示例 1: 输入:nums = [7,2,5,10,8], k = 2 输出:18 解释: 一共有四种方法将 nums 分割为 2 个子数组。 其中最好的方式是将其分为 [7,2,5] 和 [10,8] 。 因为此时这两个子数组各自的和的最大值为18,在所有情况中最小。 示例 2: 输入:nums = [1,2,3,4,5], k = 2 输出:9 示例 3: 输入:nums = [1,4,4], k = 3 输出:4
提示:
代码 代码 测试用例 测试用例 测试结果 测试结果 |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |