Sort the Matrix Diagonally
Filed under HashedIn
The question
Given a matrix, sort its diagonals in ascending order from top-left to bottom-right.
No write-up yet. Related questions below have one.
Related HashedIn questions
Collected from public candidate posts and coding forums. Updated Nov 2026.