Available question text
Given batchSize and group sizes, maximize how many groups can start with a fresh batch by reordering groups; the core challenge is to treat group sizes by their remainder mod batchSize and use a DP/memoization over the multiset of remainders (encoded compactly) to optimally sequence them (batchSize ≤ 9, groups ≤ 30).
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 1815. Maximum Number of Groups Getting Fresh Donuts
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source