Available question text
Given an m x n integer matrix, sort the elements along each top-left to bottom-right diagonal independently in ascending order and return the resulting matrix. A useful observation is that cells on the same diagonal share the same i-j index, so you can group and reorder each diagonal separately (m,n ≤ 100, values 1..100).
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
Meta
Leetcode 1329. Sort the Matrix Diagonally
Reported Jun 2, 2025 · 1 source report
SENIOR
Source snapshot: Nov 12, 2026
View source