Available question text
Given costs for each horizontal and vertical cut on an m×n cake where each cut's cost is incurred once for every segment it crosses, determine the order of cuts that minimizes total cost — a greedy scheduling problem solvable by always performing the currently largest remaining cut while tracking how many segments it will affect.
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 3218. Minimum Cost for Cutting Cake I
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source