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.
6719 Solvers
831 Solvers
151 Solvers
68 Solvers
We love vectorized solutions. Problem 1 : remove the row average.
546 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!