digonal sort
class Solution {
public int[][] diagonalSort(int[][] mat) {
int m = mat.length;
int n = mat[0].length;
// Diagonals starting from first row
for (int col = 0; col < n; col++) {
sortDiagonal(mat, 0, col,...
yesamitsingh.hashnode.dev1 min read