Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
xy = [3,4; 0,0; 0,1; 1,1];
z_correct = 7;
assert(isequal(walked(xy),z_correct))
ans =
7
|
2 | Pass |
xy = [3,4; 0,0];
z_correct = 5;
assert(isequal(walked(xy),z_correct))
ans =
5
|
3 | Pass |
xy = [0,0; 5,12; 0,12];
z_correct = 18;
assert(isequal(walked(xy),z_correct))
ans =
18
|
Sort a list of complex numbers based on far they are from the origin.
4327 Solvers
Generate a string like abbcccddddeeeee
234 Solvers
Who has power to do everything in this world?
318 Solvers
463 Solvers
2145 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!