Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
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.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.