top of page

most common Netflix coding interview questions

netflix-logo.png

the 15 most asked questions in a netflix Software engineer interview

Arrays

Arrays

Determine if the sum of three integers is equal to the given value

Problem statement

Given an array of integers and a value, determine if there are any three integers in the array whose sum equals the given value.

Click here for solution

Set columns and rows as zeros

Problem statement

Given a two-dimensional array, if any element within is zero, make its whole row and column zero.

Click here for solution

Linked Lists

linked lists

Add two integers

Problem statement

Given the head pointers of two linked lists where each linked list represents an integer number (each node is a digit), add them and return the resulting linked list.

Click here for solution

Intersection point of two linked lists

Problem statement

Given the head nodes of two linked lists that may or may not intersect, find out if they do in fact intersect and return the point of intersection. Return null otherwise.

Click here for solution

Trees

trees

Convert binary tree to doubly linked list

Problem statement

Given a binary tree, populate an array to represent its zigzag level order traversal. You should populate the values of all nodes of the first level from left to right, then right to left for the next level and keep alternating in the same manner for the following levels.

Click here for solution

Is binary search tree?

Problem statement

Given a binary tree, figure out whether it's a BST.

Click here for solution

Strings

strings

Reverse words in a sentence

Problem statement

Given a sentence (an array of characters), reverse the order of words.

Click here for solution

Segment string into dictionary words

Problem statement

We are given a dictionary of words and a large input string. We have to find out whether the input string can be completely segmented into the words of a given dictionary.

Click here for solution

Dynamic Programming

dynamic programming

How many ways can you make change with coins and a total amount

Problem statement

Given coins denominations and total amount, find out the number of ways to make the change.

Click here for solution

Math and Stats

Math and stats

Given a set of integers, find all subsets

Problem statement

We are given a set of integers and we have to find all the possible subsets of this set of integers.

Click here for solution

Backtracking

backtracking

Print balanced parentheses for a given number 'n'

Problem statement

Print all braces combinations for a given value n so that they are balanced.

Click here for solution

Graphs

Graphs

Minimum Spanning tree

Problem statement

Find the minimum spanning tree of a connected, undirected graph with weighted edges.

Click here for solution

Design

design

Serialize / deserialize a binary tree

Problem statement

Serialize a binary tree to a file and then deserialize it back to a tree so that the original and the deserialized trees are identical.

Click here for solution

Sorting and Searching

sorting and searching

Search for a given number in rotated array

Problem statement

Search for a given number in a sorted array that has been rotated by some arbitrary number. Return -1 if the number does not exist. Assume that the array does not contain duplicates.

Click here for solution

Closest meeting point

Problem statement

Given N people on an MxM grid, find the point that requires the least total distance covered by all people to meet at that point.

Click here for solution

have you been asked a question that is not included here in your netflix interview? 

please share with us:

Thanks! Message sent.

map_icon.png

Need help preparing for the interview?

Check out the Definitive Interview Prep Roadmap,

written and reviewed by real hiring managers.

bottom of page