You need multiple tests to check a variety of situations.
This user (ALBERT ALEXANDER STONIER) appears to have gamed the system, with fraudulent "likes" of this unremarkable solution submitted by 'sock-puppet' accounts. —DIV
improve test suite
Swap the first and last columns
12726 Solvers
How many trades represent all the profit?
527 Solvers
371 Solvers
Switch matrix to a column vector
266 Solvers
439 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!