Find loyal customers from two days of website logs.
Unlock detailed company stats for this questionUpgrade
You are given two lists of logs, where each log entry contains a timestamp, a customerId, and a pageId. Find all loyal customers: customers who visited the website on both days and visited more than two distinct pages on each day. Discussion covered HashMap, HashSet, optimizing from multiple maps to a single map, and time and space complexity. The interviewer did not ask for code.
Expect follow-ups like
- Optimize from multiple maps to a single map.
- Analyze the time and space complexity.
Community answers
No answers contributed by the community yet.
Related courses

Course

Course
Course
