Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 35431;
y_correct = 256;
assert(isequal(sq_sum(x),y_correct))
ans =
256
|
2 | Pass |
x = -431;
y_correct = 64;
assert(isequal(sq_sum(x),y_correct))
ans =
64
|
Given an unsigned integer x, find the largest y by rearranging the bits in x
780 Solvers
530 Solvers
315 Solvers
Sum of diagonals elements of a matrix
166 Solvers
Matlab Basics - Convert a row vector to a column vector
419 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!