Cody

Solution 1528293

Submitted on 14 May 2018 by Erik Luiten
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   Pass
a = 1; s_correct = 1; assert(isequal(maxDiagonalSum(a),s_correct))

r = 0

2   Pass
a = [1 2 3; 2 3 4; 4 5 10]; s_correct = 14; assert(isequal(maxDiagonalSum(a),s_correct))

r = 0

3   Pass
a = [1 2 ; 4 3 ]; s_correct = 6; assert(isequal(maxDiagonalSum(a),s_correct))

r = 0