Amazon phone interview

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2025-03-25Added By Anonymous
Source: Link

Hi,

I had phone interview round with Amazon recently and I was asked this question:

Live stream analyzer coding question, you have to add a user comment(userID,comment), one userid can appear multiple times and when I ask get K top users, you have to give me K top users.


Note that you can not store users for more than N time.

Is this a particular leetcode problem? Can anyone help me understand solution for this ?

Comments