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.
0
Hello Interview Premium
Your account is free and you can post anonymously if you choose.