Design DS for recent unique visitors
Filed under Paytm
The question
Given a stream of access logs with user ID, page ID, and date, design a data structure to find the 'n' recent unique visitors and the pages they visited.
No write-up yet. Related questions below have one.
Related Paytm questions
Collected from public candidate posts and coding forums. Updated Nov 2026.