Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 1;
y_correct = 1;
assert(isequal(calculate_sum(x),y_correct))
|
2 | Pass |
x = [1 2 5 9 4];
y_correct = 21;
assert(isequal(calculate_sum(x),y_correct))
|
Find the sum of all the numbers of the input vector
31947 Solvers
Given an unsigned integer x, find the largest y by rearranging the bits in x
780 Solvers
257 Solvers
664 Solvers
30 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!