Algorithm · Karat · Medium
This task has two parts. Part 1: Group users by following count. You receive a list of events, each of which is either a follow or an unfollow action between users. Apply the events and then organize the users into groups according to the number of accounts each of them ends up following. Part 2: Movie recommendations. For a given user, produce movie recommendations drawn from other users who gave high ratings to the same movies that this user rated. Constraints: Part 1…