► Support me on Patreon: https://www.patreon.com/algorithmspractice
Problem description:
Sort M x N matrix diagonally in ascending order from top left to bottom right
Example 1:
matrix = [
[8, 12, 13],
[10, 11, 1],
[19, 17, 0]
]
result:
[
[0, 1, 13],
[10, 8, 12],
[19, 17, 11]
]