摘要: 抽象为把序列分成D段,求和最大的段的最小值 下界为最大值,上界为序列和,二分结果,每次去验证是否合适即可 class Solution { public: int shipWithinDays(vector<int>& weights, int D) { int total = 0; int max 阅读全文
posted @ 2021-04-26 17:54 WTSRUVF 阅读(73) 评论(0) 推荐(0) 编辑