"...return a positive integer, y, which is the xth term ..." in de description.
I have a single line of code in my solution -- how is yours so small!?!
Given an unsigned integer x, find the largest y by rearranging the bits in x
783 Solvers
177 Solvers
Cell Counting: How Many Draws?
584 Solvers
348 Solvers
2145 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!