LeetCode Experience · Dec 2023 · Los Angeles

Amazon | Onsite | Top 5 recommendations in last hour

2 upvotes 348 views 3 replies

Interview Experience

Given a continuous data stream of purchases (userId, productId, timestamp), save the data in memory and return top 5 product recommendations in the last hour. The following is my solution. AddProduct -...

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Hash Table Heap Queue