Netflix Coding & Algorithms Interview Questions
Master your tech interview with our curated database of real questions from top companies.
Implement weighted-eviction cache
Question Design and implement a weighted cache supporting get(key) and put(key, value, weight) operations. The cache has a total weight limit; when in...
Identify Longest Consecutive Incrementing Watch-Time Sequence
Scenario A streaming platform records daily minutes watched per user and wants to identify engagement streaks. Question Given an unsorted integer arra...
Find user pairs with overlapping last K movies
You are given the same user movie-watching histories as in the previous problem. Each user’s history is an ordered list of movie IDs from earliest to ...
Group users by same last K watched movies
You are given a list of users' movie-watching histories. Each user’s history is an ordered list of movie IDs in the order they were watched (earliest ...
Implement longest increasing subarray with one deletion
Given an array of integers nums, return the length of the longest strictly increasing contiguous subarray you can obtain by deleting at most one eleme...
Solve non-repeating show substring
Question LeetCode 3. Longest Substring Without Repeating Characters – variant where the elements are show names instead of numbers. https://leetcode.c...
Find longest unique show window
Given an array of show names (strings) representing a user's viewing history, return the start and end indices of a longest contiguous subarray that c...
Implement topological sort from string input
You receive N lines of raw text describing task dependencies, e.g., 'install A after B', 'C->A', 'B before D'. Implement a function that: ( 1) parses ...