Skip to content

Commit

Permalink
Improved readability
Browse files Browse the repository at this point in the history
  • Loading branch information
Ykhan799 committed Sep 29, 2024
1 parent 1f621bb commit 763318e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/1572-matrix-diagonal-sum.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def diagonalSum(self, mat: List[List[int]]) -> int:
cross = self.CrossSum(mat)

if len(mat) % 2 == 0:
return prime+cross
return prime + cross
else:
mid = len(mat) // 2
mid_ele = mat[mid][mid]
Expand Down

0 comments on commit 763318e

Please sign in to comment.