Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
xyz = [1 -1 2; 0 2 5; 4 0 -3];
abc = [21; 21; 21];
y_correct = [ 9 -2 5 ];
assert(sum((transpose(answerMe(xyz,abc))-y_correct))<0.01)
y =
9
-2
5
|
2 | Pass |
xyz = [1 2; 1 -2];
abc = [3; -1];
y_correct = [ 1 1];
assert(isequal(nnz(answerMe(xyz,abc)-y_correct),0))
y =
1
1
|
Given an unsigned integer x, find the largest y by rearranging the bits in x
781 Solvers
1763 Solvers
192 Solvers
Side of an equilateral triangle
2600 Solvers
66 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!