The Test Suite only accepts one ordering of the two x values, but the ordering is not explained. See e.g. Solution 1574317. Either the Test Suite or the Problem Statement needs to be amended. Also, it is recommended that at least four test cases be provided, though more are often necessary to prevent hard-coded workarounds. —DIV
Sorry, I suppose the "hint" does suggest that descending order is wanted. However it would still have been beneficial to state it explicitly. —DIV
335 Solvers
318 Solvers
312 Solvers
131 Solvers
124 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!