this not a good solution but good enough for the test cases
Swap the first and last columns
12720 Solvers
10142 Solvers
668 Solvers
254 Solvers
235 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!