Problem 498 · Medium

Diagonal Traverse

Traverse matrix diagonally returning 1D array.

Open the interactive visualisation