Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 1; y = 2;
z_correct = 3;
assert(isequal(sumTwo(x,y),z_correct));
|
2 | Pass |
x = -21; y = 32;
z_correct = 11;
assert(isequal(sumTwo(x,y),z_correct));
|
3 | Pass |
x = randi(100); y = randi(100);
z_correct = sqrt(x^2 + y^2 + 2*x*y);
assert(isequal(sumTwo(x,y),z_correct));
|
2486 Solvers
Given an unsigned integer x, find the largest y by rearranging the bits in x
780 Solvers
Output any real number that is neither positive nor negative
316 Solvers
406 Solvers
Sum of diagonals elements of a matrix
166 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!