-
4 Comments
Show
1 older comment
Jake McIvor
on 25 Jan 2012
What about
a = [ 1 0 0 0;
0 0 4 0];?
Will
on 26 Jan 2012
Ditto, it appears the test case(s) don't catch this one.
Amy
on 26 Jan 2012
Yes, this solution returns the person who has the most coins, not the most change.
Ned Gulley
on 26 Jan 2012
I've added to the test suite to help close this loophole.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!