This solution is outdated. To rescore this solution, sign in.
-
1 Comment
Peng Liu
on 25 Mar 2015
Although it passes the test suite, this solution is incorrect for n = 4, 6. The main reason for this error is that the nested loop for j is incorrect. It should be for j=i:c
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!