Problem 46565. Find an inscribed square on a closed curve
45.71% Correct | 54.29% Incorrect
Last Solution submitted on Apr 07, 2023
Rafael S.T. Vieira on 1 Nov 2020
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.
Dyuman Joshi on 19 Sep 2022
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 CommentsShow comments
Problem Recent Solvers8
Try 1.5.4: Celsius to Fahrenheit
More from this Author50
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!