There's a problem with the solution suite. For seed=12 and n=16, the proposed answer of 5, 12, 13 as a Pythagorean triple is indeed a good one. However, 9, 12, 15 is equally valid but not included as an answer. To avoid this, I would suggest changing the problem so that it requires finding the answer with the minimum Z^2 to avoid ambiguity.
Given two strings, find the maximum overlap
468 Solvers
95 Solvers
middleAsColumn: Return all but first and last element as a column vector
393 Solvers
Calculate the area of a triangle between three points
917 Solvers
The Answer to Life, the Universe, and Everything
385 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!