Current Ruby translation exposes solution and doesn't include random tests. Fixed Ruby translation waiting for approval:
Haskell: some random test cases have x < y, which doesn't agree with the description.
x < y
Oh, should've tagged this as an issue, I'll check and fix this.
Am I missing something?
This comment is hidden because it contains spoiler information about the solution
As I said in the description, it's any possible square, including overlapping ones, so the 3x2 rectangle has 8 total squares with 6 1x1s and 2 2x2s. Sorry for the late response, I haven't been very active recently.
Are these overlapping or distinct squares?
Because 3x2 contains 2 overlapping 2x2 squares and 6 distinct 1x1 squares
are these overlapping squares or distinct?
because 3*2 contains 2 overlapping squares of area 2x2. and it contains 6 distinct squares of 1x1.
Approved, thanks, sorry about the late response.
Haskell : https://www.codewars.com/kumite/5b873a0c36332f9f400000ef?sel=5b873a0c36332f9f400000ef
replaced as with adsub