Leetcode 2159. Order Two Columns Independently
Given a two-column table, generate results that order the rows independently by each column (i.e., produce one sequence sorted by column A and another sorted by column B) and present them side-by-side. The challenge is to decouple the two sortings—typically using ORDER BY with window functions (row_number) and joining the two ranked sequences while correctly handling ties.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Hello Interview Premium
Your account is free and you can post anonymously if you choose.