You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Similar Questions: Check if Every Row and Column Contains All Numbers, Check if Matrix Is X-Matrix.
6
+
7
+
## Problem
8
+
9
+
Given a square matrix `mat`, return the sum of the matrix diagonals.
10
+
11
+
Only include the sum of all the elements on the primary diagonal and all the elements on the secondary diagonal that are not part of the primary diagonal.
0 commit comments