Amazon intern VO SDE round2
483

Imagine you have a Twitter-style social network.
Each post can have multiple tags.
Your task:
Return the top X most frequent tags used by your friends and your friends-of-friends.
In other words, starting from a given user:
• Look at all friends (1-hop)
• Look at all friends of friends (2-hop)
• Aggregate all tags from all posts of those users
• Return the Top X frequent tags

Comments (1)