Available question text
Given n (a multiple of 4) pizza weights, partition them into n/4 days of 4 pizzas each so that on odd days you gain the largest pizza of that day and on even days you gain the second-largest; maximize the total gained weight by choosing the grouping and day order optimally. This is a combinatorial grouping/ordering optimization problem driven by values' relative ordering.
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 3457. Eat Pizzas!
Interview date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source