input is 10 --> 1010 output should be 3 --> 0011
input 23 --> 10111 output should be 15 --> 01111
Solution Stats
Problem Comments
1 Comment
Solution Comments
Show comments
Loading...
Problem Recent Solvers94
Suggested Problems
-
Given an unsigned integer x, find the largest y by rearranging the bits in x
1994 Solvers
-
Make an awesome ramp for a tiny motorcycle stuntman
749 Solvers
-
Get the elements of diagonal and antidiagonal for any m-by-n matrix
513 Solvers
-
Make a vector of prime numbers
966 Solvers
-
446 Solvers
More from this Author43
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
Technically it is the decimal equivalent of the "minimum binary" that must be returned here....