Available question text
Given a table of timestamped activities, return each user's second-most-recent activity. The challenge is to correctly rank events by time per user and handle edge cases like ties, users with fewer than two records, and scalability on large datasets.
Related questions
Continue with questions that share topics or the same question type.
- The Most Recent Orders for Each Product
Coding
- The Most Recent Three Orders
Coding
- Activity Participants
Coding
- Aggregate Recent Message Events And Active Chats
Coding · Data Structure Design
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 1369. Get the Second Most Recent Activity
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source