The problem description has been improved and more test cases were added.
Given an unsigned integer x, find the largest y by rearranging the bits in x
801 Solvers
1167 Solvers
192 Solvers
417 Solvers
140 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!