Search⌘ K
AI Features

Divide Chocolate

Divide Chocolate asks you to cut a sweetness array into k plus one consecutive pieces and maximize the total sweetness of the least-sweet piece you keep.

Statement

You have a chocolate bar made up of several chunks, and each chunk has a certain sweetness, given in an array called ...