Object-Oriented Programming · Netflix · Medium
Build a playlist that recommends movies. Every movie carries a unique ID together with a score that can change over time. Movies are handed out from highest score to lowest, with the restriction that within a single repeat loop no movie may be handed out more than once. Once every one of the N movies has been handed out during a loop, the following GET begins a fresh repeat loop on its own. At that point all movies are eligible again, and they are ranked by whatever their…