Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
M = [8 6 10 10 4 7 7 7
9 1 10 5 9 0 8 2
1 3 2 8 8 8 7 7
9 5 10 1 10 9 4 0 ];
y_correct = 35;
assert(isequal(shortest_path(M),y_correct))
|
2 | Pass |
M = [6 8 5 5 3
5 4 8 0 5
9 6 9 3 2
3 1 1 2 6
8 1 6 8 3 ];
y_correct = 22;
assert(isequal(shortest_path(M),y_correct))
|
3 | Pass |
M = hadamard(8);
y_correct = -5;
assert(isequal(shortest_path(M),y_correct))
|
1261 Solvers
4327 Solvers
306 Solvers
Solve the set of simultaneous linear equations
273 Solvers
Reverse the elements of an array
687 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!