Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 2228. Users With Two Purchases Within Seven Days
Given purchase records (user_id, purchase_date), identify users who have any two purchases within a 7-day window—i.e., any pair of that user's purchase dates differ by at most seven days. This requires grouping by user and detecting date pairs via sorting/sliding-window or equivalent SQL window/self-join logic.
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.