Problem 108. Given an unsigned integer x, find the largest y by rearranging the bits in x
Solution Stats
Problem Comments
-
2 Comments
de2bi doesn't work either
de2bi is a toolbox function. Cody does not currently support toolbox functions.
Solution Comments
-
2 Comments
DecimalToBinaryVector is regarded as undefined function ???
That's right, because there is no such thing. These are named something else.
-
1 Comment
how to improve this size to 10?
-
2 Comments
Problem Recent Solvers1191
Suggested Problems
-
Find the sum of all the numbers of the input vector
38160 Solvers
-
Find the peak 3n+1 sequence value
1537 Solvers
-
Find the maximum number of decimal places in a set of numbers
1494 Solvers
-
725 Solvers
-
612 Solvers
More from this Author100
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!