Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 1532. The Most Recent Three Orders
For each customer, return their three most recent orders from an orders table, ranked by order date (with ID as a tie-breaker). The core challenge is filtering to the top‑k rows per group—typically solved with SQL window functions (ROW_NUMBER()/PARTITION BY) or correlated subqueries.
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.