Available question text
Assign the smallest possible positive integer rank to each matrix cell so that ranks in any row or column preserve the ordering of values (equal values get equal ranks). The challenge is to process values in increasing order while grouping equal-valued cells across rows/columns (e.g., with union-find) and propagating ranks based on prior row/column maxima to compute the unique minimal assignment.
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 1632. Rank Transform of a Matrix
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source