1240. Tiling a Rectangle with the Fewest Squares
Previous1239. Maximum Length of a Concatenated String with Unique CharactersNext1241. Number of Comments per Post
Last updated
Last updated
**Input:** n = 2, m = 3
**Output:** 3
**Explanation:** 3 squares are necessary to cover the rectangle.
2 (squares of 1x1)
1 (square of 2x2)**Input:** n = 5, m = 8
**Output:** 5**Input:** n = 11, m = 13
**Output:** 6