This solution is outdated. To rescore this solution, sign in.
-
2 Comments
Mike
on 26 Jan 2012
OK, I had to test the leader's work myself, and I get it now. If any values repeat, unique()
's answer is shorter and therefore not equal. Since unique()
sorts the answer in ascending order, only a strictly increasing function has both terms equal.
Renato
on 13 Mar 2012
can I say: WOW
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!