Cody

Solution 1976862

Submitted on 15 Oct 2019
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
x = [3 0 0 0 7 4 0 0 2 4 6 0 8 5 9 3]; assert(isequal(maxPathSum(x),23))

Output argument "s" (and maybe others) not assigned during call to "maxPathSum". Error in Test1 (line 5) assert(isequal(maxPathSum(x),23))

2   Fail
assert(isequal(maxPathSum(tril(magic(10))),891))

Output argument "s" (and maybe others) not assigned during call to "maxPathSum". Error in Test2 (line 1) assert(isequal(maxPathSum(tril(magic(10))),891))

3   Fail
assert(isequal(maxPathSum(tril(magic(100)^2)),251716502500))

Output argument "s" (and maybe others) not assigned during call to "maxPathSum". Error in Test3 (line 1) assert(isequal(maxPathSum(tril(magic(100)^2)),251716502500))

4   Fail
assert(isequal(maxPathSum(tril(mod(magic(1000),997))),741570))

Output argument "s" (and maybe others) not assigned during call to "maxPathSum". Error in Test4 (line 1) assert(isequal(maxPathSum(tril(mod(magic(1000),997))),741570))

5   Fail
assert(isequal(maxPathSum(tril(gallery('integerdata',1e4,5e3,4))),37455089))

Output argument "s" (and maybe others) not assigned during call to "maxPathSum". Error in Test5 (line 1) assert(isequal(maxPathSum(tril(gallery('integerdata',1e4,5e3,4))),37455089))