Given an unsigned integer x, find the largest y by rearranging the bits in x.
Example:
Input x = 10 Output y is 12
since 10 in binary is 1010 and 12 in binary is 1100.
DecimalToBinaryVector is regarded as undefined function ???
That's right, because there is no such thing. These are named something else.
how to improve this size to 10?
650 Solvers
307 Solvers
Make a run-length companion vector
453 Solvers
Output any real number that is neither positive nor negative
252 Solvers
424 Solvers