โ† Amazon questions

Design a log-processing data structure for website page visits

Filed under Amazon

The question

Design an efficient data structure given a daily log file of page visits by users to handle queries such as finding pages visited by exactly 2 users, visited by only one user exactly twice, or visited by a specific user more than 5 times.

No write-up yet. Related questions below have one.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.