Problem 1444 · Hard

Number of Ways of Cutting a Pizza

Count the ways to make k cuts so that every resulting piece contains at least one apple. The visual overlays the cut lines on the grid and counts apples in each region.

Open the interactive visualisation