1444. Number of Ways of Cutting a Pizza
Description
**Input:** pizza = ["A..","AAA","..."], k = 3
**Output:** 3
**Explanation:** The figure above shows the three ways to cut the pizza. Note that pieces must contain at least one apple.
**Input:** pizza = ["A..","AA.","..."], k = 3
**Output:** 1
**Input:** pizza = ["A..","A..","..."], k = 1
**Output:** 1ac
Last updated
