-
2 Comments
Jan
on 6 Mar 2012
Solves the example only, but not the general case.
Bruce Raine
on 17 Mar 2012
I have introduced a few more tests so this non-general solution is no longer valid. Thanks.
Suggested Problems
-
Given an unsigned integer x, find the largest y by rearranging the bits in x
1858 Solvers
-
651 Solvers
-
2199 Solvers
-
342 Solvers
-
Reverse the elements of an array
1045 Solvers
More from this Author16
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!