-
1 Comment
Peng Liu
on 31 Aug 2016
This solution together with the solution of James' (or mine) exhibits a nice duality between the "top-down" and "bottom-up" approaches.
Suggested Problems
-
Given an unsigned integer x, find the largest y by rearranging the bits in x
1919 Solvers
-
Project Euler: Problem 16, Sums of Digits of Powers of Two
145 Solvers
-
467 Solvers
-
Spot the First Occurrence of 5
424 Solvers
-
415 Solvers
More from this Author2
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!