Available question text
Given timestamped user activity (or login/logout) events, compute the number of unique users considered "active" within each sliding time window or at query times. The challenge is efficiently maintaining a time-windowed count with deduplication (e.g., via hash maps/sets, queues or time buckets) to support large inputs and real-time queries.
Related questions
Continue with questions that share topics or the same question type.
- Find Active Users
Coding
- Finding the Users Active Minutes
Coding
- Active Businesses
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 1454. Active Users
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source