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
-
Project Euler: Problem 9, Pythagorean numbers
668 Solvers
-
2003 Solvers
-
Back to basics 22 - Rotate a matrix
823 Solvers
-
Sum of diagonal of a square matrix
1435 Solvers
-
8630 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!