Problem 46565. Find an inscribed square on a closed curve
Solution Stats
Problem Comments
-
2 Comments
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.
Test suite has been updated to check for a solution's angles as well and a mixed test case with rhombus and square mixed has been added.
Solutions have been rescored as well.
Solution Comments
Show commentsProblem Recent Solvers9
Suggested Problems
-
The Goldbach Conjecture, Part 2
2314 Solvers
-
1691 Solvers
-
72 Solvers
-
Project Euler: Problem 3, Largest prime factor
1399 Solvers
-
Project Euler: Problem 8, Find largest product in a large string of numbers
1079 Solvers
More from this Author50
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!