Problem 46565. Find an inscribed square on a closed curve
Solution Stats
Problem Comments
-
1 Comment
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.
Problem Recent Solvers9
Suggested Problems
-
Create a cell array out of a struct
1009 Solvers
-
Smallest distance between a point and a rectangle
157 Solvers
-
Project Euler: Problem 3, Largest prime factor
942 Solvers
-
Recurring Cycle Length (Inspired by Project Euler Problem 26)
89 Solvers
-
Back to basics 20 - singleton dimensions
258 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!