Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 2305. Fair Distribution of Cookies
Partition a small array of cookie counts (n ≤ 8) into exactly k groups (each bag assigned whole) to minimize the maximum group sum — i.e., find a k-way partition that minimizes the largest subtotal. This is a combinatorial partitioning problem often solved by backtracking with pruning or bitmask DP.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.