Cody

Problem 1158. Sum the elements in either diagonal of a square matrix

Sum the elements of a square matrix that lie on either the major diagonal or anti-diagonal. (Include all elements that are part of either of the diagonals).

Solution Stats

34.63% Correct | 65.37% Incorrect
Last Solution submitted on Mar 04, 2020

Problem Comments

Solution Comments

Problem Recent Solvers146

Suggested Problems

More from this Author2