This question evaluates algorithmic thinking and data-structure design for deduplication, along with system-design competencies around ranking, client-server trade-offs, and large-scale content rendering.
You are rendering a Netflix-style home page composed of multiple horizontal carousels ("rows/rails"). Each row has a ranked list of candidate shows from upstream recommendation sources. On initial render, a user sees the first R_visible rows and the first C tiles per row (the "first screen/viewport").
Requirement: The union of all tiles visible in the first viewport (R_visible × C) must have no duplicate shows (same title), even if rows are sourced independently. Duplicates off-screen are allowed.
Login required