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
818 Solvers
Find the sum of the elements in the "second" diagonal
1006 Solvers
179 Solvers
467 Solvers
301 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!