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))
|
2 | Pass |
xy = [3,4; 0,0];
z_correct = 5;
assert(isequal(walked(xy),z_correct))
|
3 | Pass |
xy = [0,0; 5,12; 0,12];
z_correct = 18;
assert(isequal(walked(xy),z_correct))
|
9868 Solvers
Return the largest number that is adjacent to a zero
3749 Solvers
501 Solvers
Back to basics 25 - Valid variable names
293 Solvers
331 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!