Your test suite just checks whether a quadrilateral has equal sides, but that's not enough to form a square: rhombuses also have equal sides. Therefore, the test suite should also check a solution's angles.
PS: A test case filled with rhombuses and a single square on the curve would be instructional too.
Count from 0 to N^M in base N.
220 Solvers
Find the sum of the elements in the "second" diagonal
999 Solvers
404 Solvers
94 Solvers
I've got the power! (Inspired by Project Euler problem 29)
90 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!