Problem 108. Given an unsigned integer x, find the largest y by rearranging the bits in x
Solution Stats
Problem Comments
-
2 Comments
Archana Narayanan
on 26 Mar 2021
de2bi doesn't work either
goc3
on 29 Mar 2021
de2bi is a toolbox function. Cody does not currently support toolbox functions.
Solution Comments
-
2 Comments
Nick
on 29 Jun 2014
DecimalToBinaryVector is regarded as undefined function ???
Raymond Phan
on 28 Jul 2014
That's right, because there is no such thing. These are named something else.
-
1 Comment
Gareth Lee
on 11 Nov 2014
how to improve this size to 10?
-
2 Comments
Problem Recent Solvers1378
Suggested Problems
-
8129 Solvers
-
Return the 3n+1 sequence for n
7393 Solvers
-
670 Solvers
-
6800 Solvers
-
5383 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!