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
2291 Solvers
Matlab Basics - Convert a row vector to a column vector
440 Solvers
107 Solvers
Back to Basics - Find no. of elements in a matrix?
223 Solvers
269 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!