1240. Tiling a Rectangle with the Fewest Squares
Given a rectangle of size n x m, return the minimum number of integer-sided squares that tile the rectangle.
- Time : O(nm * min(n,m))
- Space : O(2^(n+m))
c++
1 | class Solution { |