Cody

Solution 1518845

Submitted on 6 May 2018 by Shreyash Singh
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))

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

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

Suggested Problems