首页 > TAG信息列表 > sweetness
LeetCode 1231 Divide Chocolate 二分答案
You have one chocolate bar that consists of some chunks. Each chunk has its own sweetness given by the array sweetness. You want to share the chocolate with your k friends so you start cutting the chocolate bar into k + 1 pieces using k cuts, each piece c