Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
y=2020;
n=bondcount(y);
assert(isequal(round(n),27))
|
2 | Pass |
%%
y=2100;
n=bondcount(y);
assert(isequal(round(n),52))
|
3 | Pass |
%%
y=2289;
n=bondcount(y);
assert(isequal(round(n),100))
|
4 | Pass |
%%
y=4661;
n=bondcount(y);
assert(isequal(round(n),500))
|
Given an unsigned integer x, find the largest y by rearranging the bits in x
780 Solvers
Arrange Vector in descending order
4075 Solvers
351 Solvers
281 Solvers
323 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!