The input x is unnecessary. Consider modifying the problem by removing x or making y an anonymous function.
Given an unsigned integer x, find the largest y by rearranging the bits in x
795 Solvers
Back to basics 19 - character types
226 Solvers
132 Solvers
07 - Common functions and indexing 2
328 Solvers
294 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!