Available question text
Given an m×n integer matrix, return its transpose (flip over the main diagonal) producing an n×m matrix where element at (i, j) becomes (j, i). m and n can be up to 1000 with total elements ≤10^5, so a linear-time O(m·n) solution is expected.
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
No company association
Leetcode 867. Transpose Matrix
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source