Array
498. Diagonal Traverse
Traverse a matrix along its anti-diagonals in a zigzag: first diagonal up-right, next down-left, alternating. It's a pure simulation problem — the whole difficulty is bookkeeping the direction flips…
Loading…
Traverse a matrix along its anti-diagonals in a zigzag: first diagonal up-right, next down-left, alternating. It's a pure simulation problem — the whole difficulty is bookkeeping the direction flips…
Loading…