Easy indeed! I can do it on leetcode editor without IDE debug.
Problem
Java
1 | class Solution { |
Submission Detail
- 113 / 113 test cases passed.
- Runtime: 0 ms, faster than 100.00% of Java online submissions for Matrix Diagonal Sum.
- Memory Usage: 39.5 MB, less than 16.30% of Java online submissions for Matrix Diagonal Sum.