Problem database last updated: June 20, 2025

NNetflix logo

Netflix Coding Interview Questions

36 problems · 8 Easy, 23 Medium, 5 Hard · Ranked #57 of 458

Difficulty breakdown

8 Easy

22% · avg 23%

23 Medium

64% · avg 59%

5 Hard

14% · avg 18%

Top topics

array
66.7%
hash-table
30.6%
string
27.8%
sorting
22.2%1.5x
depth-first-search
13.9%1.5x
binary-search
13.9%1.6x

Interview profile

Based on 36 reported problems, Netflix interviews are in line with industry averages - 14% Hard vs 18% overall. The majority (64%) of questions are Medium difficulty, which is typical for companies that want to see solid fundamentals without excessive trick questions.

Compared to the industry average, Netflix puts unusual emphasis on bucket-sort (8.3% of problems, 10.7x the industry average), randomized (5.6% of problems, 6x the industry average), ordered-set (5.6% of problems, 5.5x the industry average). If you're short on time, these are the categories to double down on.

The most common topics are array (66.7%), hash-table (30.6%), string (27.8%), sorting (22.2%). Problems below are sorted by frequency, the ones at the top are asked most often.

All 36 problems

Merge Intervals

Solve

Given an array of intervals where intervals[i] = [starti, endi], merge all overlapping intervals, and return an array of the non-overlapping intervals that cove...

MediumVery Likely
arraysorting

First Missing Positive

Solve

Given an unsorted integer array nums. Return the smallest positive integer that is not present in nums.

HardVery Likely
arrayhash-table

Reconstruct Itinerary

Solve

You are given a list of airline tickets where tickets[i] = [fromi, toi] represent the departure and the arrival airports of one flight. Reconstruct the itinerar...

HardVery Likely
arraystringdepth-first-search

Random Pick with Weight

Solve

You are given a 0-indexed array of positive integers w where w[i] describes the weight of the ith index.

MediumVery Likely
arraymathbinary-search

Time Based Key-Value Store

Solve

Design a time-based key-value data structure that can store multiple values for the same key at different time stamps and retrieve the key's value at a certain...

MediumVery Likely
hash-tablestringbinary-search

Flatten Nested List Iterator

Solve

You are given a nested list of integers nestedList. Each element is either an integer or a list whose elements may also be integers or other lists. Implement an...

MediumVery Likely
stacktreedepth-first-search

Summary Ranges

Solve

You are given a sorted unique integer array nums.

EasyLikely
array

Top K Frequent Elements

Solve

Given an integer array nums and an integer k, return the k most frequent elements. You may return the answer in any order.

MediumLikely
arrayhash-tabledivide-and-conquer

LRU Cache

Solve

Design a data structure that follows the constraints of a Least Recently Used (LRU) cache.

MediumLikely
hash-tablelinked-listdesign

Cache With Time Limit

Solve

Write a class that allows getting and setting key-value pairs, however a time until expiration is associated with each key.

MediumLikely

Longest Substring Without Repeating Characters

Solve

Given a string s, find the length of the longest substring without duplicate characters.

MediumLikely
hash-tablestringsliding-window

Contains Duplicate III

Solve

You are given an integer array nums and two integers indexDiff and valueDiff.

HardLikely
arraysliding-windowsorting

Contains Duplicate II

Solve

Given an integer array nums and an integer k, return true if there are two distinct indices i and j in the array such that nums[i] == nums[j] and abs(i - j) <=...

EasyLikely
arrayhash-tablesliding-window

Koko Eating Bananas

Solve

Koko loves to eat bananas. There are n piles of bananas, the ith pile has piles[i] bananas. The guards have gone and will come back in h hours.

MediumLikely
arraybinary-search

Word Search

Solve

Given an m x n grid of characters board and a string word, return true if word exists in the grid.

MediumLikely
arraystringbacktracking

Insert Delete GetRandom O(1)

Solve

Implement the RandomizedSet class:

MediumLikely
arrayhash-tablemath

Contains Duplicate

Solve

Given an integer array nums, return true if any value appears at least twice in the array, and return false if every element is distinct.

EasyLikely
arrayhash-tablesorting

Daily Temperatures

Solve

Given an array of integers temperatures represents the daily temperatures, return an array answer such that answer[i] is the number of days you have to wait aft...

MediumLikely
arraystackmonotonic-stack

Search in Rotated Sorted Array

Solve

There is an integer array nums sorted in ascending order (with distinct values).

MediumLikely
arraybinary-search

Valid Parentheses

Solve

Given a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.

EasyLikely
stringstack

Course Schedule II

Solve

There are a total of numCourses courses you have to take, labeled from 0 to numCourses - 1. You are given an array prerequisites where prerequisites[i] = [ai, b...

MediumLikely
depth-first-searchbreadth-first-searchgraph

Top K Frequent Words

Solve

Given an array of strings words and an integer k, return the k most frequent strings.

MediumLikely
arrayhash-tablestring

Best Time to Buy and Sell Stock

Solve

You are given an array prices where prices[i] is the price of a given stock on the ith day.

EasyLikely
arraydynamic-programming

Implement Queue using Stacks

Solve

Implement a first in first out (FIFO) queue using only two stacks. The implemented queue should support all the functions of a normal queue (push, peek, pop, an...

EasySometimes
stackdesignqueue

Merge Sorted Array

Solve

You are given two integer arrays nums1 and nums2, sorted in non-decreasing order, and two integers m and n, representing the number of elements in nums1 and num...

EasySometimes
arraytwo-pointerssorting

Rotate Array

Solve

Given an integer array nums, rotate the array to the right by k steps, where k is non-negative.

MediumSometimes
arraymathtwo-pointers

Spiral Matrix

Solve

Given an m x n matrix, return all elements of the matrix in spiral order.

MediumSometimes
arraymatrixsimulation

Word Break

Solve

Given a string s and a dictionary of strings wordDict, return true if s can be segmented into a space-separated sequence of one or more dictionary words.

MediumSometimes
arrayhash-tablestring

Rotate Image

Solve

You are given an n x n 2D matrix representing an image, rotate the image by 90 degrees (clockwise).

MediumSometimes
arraymathmatrix

Number of Flowers in Full Bloom

Solve

You are given a 0-indexed 2D integer array flowers, where flowers[i] = [starti, endi] means the ith flower will be in full bloom from starti to endi (inclusive)...

HardSometimes
arrayhash-tablebinary-search

Generate Parentheses

Solve

Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.

MediumSometimes
stringdynamic-programmingbacktracking

To Be Or Not To Be

Solve

Write a function expect that helps developers test their code. It should take in any value val and return an object with the following two functions.

EasySometimes

Coin Change

Solve

You are given an integer array coins representing coins of different denominations and an integer amount representing a total amount of money.

MediumSometimes
arraydynamic-programmingbreadth-first-search

Text Justification

Solve

Given an array of strings words and a width maxWidth, format the text such that each line has exactly maxWidth characters and is fully (left and right) justifie...

HardSometimes
arraystringsimulation

Minimum Remove to Make Valid Parentheses

Solve

Given a string s of '(' , ')' and lowercase English characters.

MediumSometimes
stringstack

Network Delay Time

Solve

You are given a network of n nodes, labeled from 1 to n. You are also given times, a list of travel times as directed edges times[i] = (ui, vi, wi), where ui is...

MediumSometimes
depth-first-searchbreadth-first-searchgraph

How often are these problems asked?

Frequency scores are based on crowdsourced interview reports. A higher score means the problem has been reported more often in recent Netflix interviews.

Very Likely

75-100%

Likely

50-74%

Sometimes

25-49%

Rare

0-24%

Preparing for your Netflix coding interview

Netflix interviews focus heavily on array, hash-table, string problems. If you're short on time, these are the categories to prioritize. The problems on this page are sorted by frequency, so start from the top and work your way down.

Beyond solving problems, practice explaining your approach. Netflix interviewers care about your thought process - how you break down a problem, consider edge cases, and evaluate tradeoffs between solutions. A clean O(n) solution you can explain clearly beats an O(log n) solution you can't articulate.

Looking for more companies? Browse all 458 companies in our directory, or sharpen your fundamentals with our free data structure visualizers and AI-powered DSA tutor.

Frequently Asked Questions

What coding problems does Netflix ask in interviews?add

Netflix has been reported to ask 36 distinct coding problems. The most common topics are array, hash-table, string. 8 are Easy difficulty, 23 are Medium, and 5 are Hard. Problems are sorted by frequency - the ones at the top are asked most often.

How hard are Netflix coding interviews?add

Based on 36 reported problems, Netflix interviews are in line with industry averages - 14% Hard vs 18% overall. 64% of questions are Medium difficulty. Focus on the high-frequency Medium problems first, then work through the Hard ones.

How should I prepare for a Netflix coding interview?add

Start with the highest-frequency problems listed on this page. Focus on the core topics: array, hash-table, string. Practice solving them under time pressure and explaining your approach out loud. Mock interviews with AI can simulate the real experience.

Other companies to explore

Ready to ace your Netflix interview?

Simulate a real Netflix coding interview with an AI interviewer. Get a scorecard with specific feedback on your problem-solving, code quality, and communication.

Simulate a Netflix interview with AIarrow_forward