Algorithm · Netflix · Easy
You're working on a recommendation engine and need to decide which movie collection to feature next. You have a source movie that a user enjoyed, plus the following data: similarityScores: an array where similarityScores[i] is the similarity score (a float between 0 and 1) between the source movie and target movie i. groups: a list of groups, each containing a set of target movie IDs. k: the number of highest-scoring movies to consider inside each group. For every group,…
Checking your access…