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
28535 Solvers
Increment a number, given its digits
563 Solvers
404 Solvers
Create tangent function out of sin and cos
62 Solvers
61 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!