diff --git "a/leetcode3/\354\235\264\354\247\204\355\235\254/1329. Sort the Matrix Diagonally.java" "b/leetcode3/\354\235\264\354\247\204\355\235\254/1329. Sort the Matrix Diagonally.java" new file mode 100644 index 00000000..9d0325f8 --- /dev/null +++ "b/leetcode3/\354\235\264\354\247\204\355\235\254/1329. Sort the Matrix Diagonally.java" @@ -0,0 +1,27 @@ +import java.util.*; + +class Solution { + public int[][] diagonalSort(int[][] mat) { + int m = mat.length; + int n = mat[0].length; + + Map> map = new HashMap<>(); + + for (int i=0; i()); + map.get(key).add(mat[i][j]); + } + } + + for (int i=0; i