Available question text
Given costs for each horizontal and vertical cut needed to split an m×n cake into 1×1 pieces, determine the cut order that minimizes total cost, knowing each cut's cost is incurred once per existing segment in the perpendicular direction. The problem reduces to a greedy scheduling/ordering challenge: choose cuts in descending cost so high-cost cuts are applied when they multiply over fewer segments.
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 3219. Minimum Cost for Cutting Cake II
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source