← Back to companies
[ OK ] Loaded —
[ INFO ]
$ cd
$ ls -lt
01
02
03
04
05
$ ls -lt
01
02
03
04
05
user@intervues:~/$
Given a list of user visit logs (user IDs), find the ID of the first user who visited exactly once.
Approach: Use a hash map to count occurrences, then iterate to find first single-occurrence user.