Find users logged in on two consecutive days from logs
Filed under Amazon
The question
Given Amazon log files of two days, find the users who logged in on both days, optimizing from hashmap to a Trie structure.
No write-up yet. Related questions below have one.
Related Amazon questions
Collected from public candidate posts and coding forums. Updated Nov 2026.