AdobeCodingMembers
Count Distinct Active Users Over a Live Event Stream
Members only
A streaming coding question about maintaining a rolling count of distinct users from a live log feed, answering after every incoming event. The interesting part is keeping the answer cheap as old activity ages out, and reasoning about what happens when a user shows up repeatedly. Follow-ups cover scale and relaxed assumptions about arrival order.
SWE
medium
sliding-window
hashmap
queue
streaming
data-structure
python
Frequency
Single report
Last asked
—
Stage
onsite-coding
Members get
- Full problem statement
- Known variants to clarify
- Step-by-step approach
- Full solution with code
- 4 common pitfalls
- 8 talking points
- 7 follow-up questions with answer directions
- Preparation drills
Log in to continue reading the full content
Comments
Sign in to join the discussion
Loading...
