Trees Interview Questions

Browse trees technical interview questions and explore the world's largest library of mock video interview recordings.

Trees Mock Interviews

Watch others solve Trees interview questions, see how they did, and learn from their mistakes.

Netflix Interview in JavaRecover binary search tree
Advance this person to the next round?
Thumbs up
Technical Skills:
3/4
Problem Solving Ability:
3/4
Communication Ability:
3/4

Trees Interview questions and solutions

Get step-by-step instructions on how to approach and solve common technical interview questions.

MEDIUM
Data Structures and Algorithms
Build a Max Heap

Given an array of integers, transform the array in-place to a max heap.

Watch 1 interview
MEDIUM
Data Structures and Algorithms
Recover Binary Search Tree

Two elements of a binary search tree (BST) are swapped by mistake. Recover the tree without changing its structure.

Watch 1 interview
MEDIUM
Find Leaves of Binary Tree

Given a binary tree, extract all the leaves in repeated succession into a list of lists by starting at the bottom and working your way upwards.

Watch 1 interview
MEDIUM
Data Structures and Algorithms
Count Complete Tree Nodes

Given the root of a complete binary tree, return the number of nodes in the tree.

Watch 1 interview
MEDIUM
Data Structures and Algorithms
Boundary of Binary Tree

The boundary of a binary tree is the concatenation of the root, the left boundary, the leaves ordered from left-to-right, and the reverse order of the right boundary.

Watch 1 interview
MEDIUM
Data Structures and Algorithms
Right View Of Binary Tree

Given the root of a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom.

Watch 1 interview

We know exactly what to do and say to get the company, title, and salary you want.

Interview prep and job hunting are chaos and pain. We can help. Really.