[Community Puzzle] Squares order

Coding Games and Programming Challenges to Code Better

Send your feedback or ask for help here!

It is not clear from the description what the answer should be for situations where it is impossible to determine the size of the squares:
Examples:
Case 1:.
2 2 1
3 4 4
3 4 4
Possible sizes for 1: 2 or 3

Case 2:
2 2 2 1
3 4 4 4
3 4 5 5
3 4 5 5
Possible sizes for 1: 2, 3 or 4

The squares’ sizes are all the same, aren’t they?

Case 1:
Sq#: Size (from top to bottom)
4: 2
3: 2
2: 2
1: 2 or 3

OK, but I suspect that the tests and validators don’t have such cases.

I think it should be clear from the problem description, and not from the tests, otherwise many problems would be solved by adjusting the answers to the test cases.