Find user pairs with overlapping last K movies
Company: Netflix
Role: Software Engineer
Category: Coding & Algorithms
Difficulty: medium
Interview Round: Take-home Project
Quick Answer: This question evaluates algorithm design skills and data-structure use for set-based similarity detection and pairwise comparisons, along with the ability to analyze time and space complexity for scalable solutions.
Constraints
- 1 <= K <= 10^3
- 1 <= M <= K
- Each user's history length is at least K
- Duplicates inside the last K movies count only once because overlap is computed on sets
- All user IDs in one input are of the same comparable type (for example, all strings or all integers)