This solution is outdated. To rescore this solution, sign in.
-
3 Comments
Fernando Díaz
on 26 Dec 2012
Elegant solution
Ozan Gunaydin
on 28 Sep 2014
Very clever!
dhanashree shirodkar
on 5 Jun 2015
Nice
Suggested Problems
-
Return the 3n+1 sequence for n
8347 Solvers
-
952 Solvers
-
Convert given decimal number to binary number.
2112 Solvers
-
4016 Solvers
-
801 Solvers
More from this Author96
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!