# Top Trees Interview Questions

Last Updated: 25 Mar, 2023

Filters

Topics

+ 15 more

Company

+ 226 more

Difficulty

Check out the top trees and graphs data structure interview questions asked in interviews of top tech companies like Amazon, only on CodeStudio. Start Practicing now!

Problem Title

EXP

Difficulty

Avg Time to solve

Attempted

Count Univalue Subtrees

71

80

Moderate

30 mins

2.6k

Binary Tree Pruning

26

80

Moderate

20 mins

0.8k

Symmetric Tree

43

40

Easy

20 mins

5.3k

Delete Leaf Nodes With Value X

17

80

Moderate

27 mins

0.7k

Minimum Depth Of Binary Tree

12

80

Moderate

20 mins

0.8k

Maximum Width In Binary Tree

22

80

Moderate

38 mins

3.1k

Reverse Level Order Traversal

34

80

Moderate

30 mins

3.1k

Right View

32

80

Moderate

35 mins

2.8k

Boundary Traversal of Binary Tree

161

120

Hard

20 mins

11.1k

Level Order Traversal

53

40

Easy

15 mins

5.4k

Check Identical Trees

26

80

Moderate

20 mins

3.7k

Partial BST

52

80

Moderate

25 mins

9.9k

Convert Bst To The Greater Sum Tree

12

80

Moderate

30 mins

1k

Distance between two nodes of a Tree

19

80

Moderate

25 mins

1.3k

Print Nodes at Distance K From a Given Node

14

120

Hard

20 mins

1k

Convert binary tree to mirror tree

20

40

Easy

15 mins

1.9k

Maximum Level Sum

4

40

Easy

15 mins

0.4k

Cousins of Given Node in Binary Tree

9

80

Moderate

10 mins

0.2k

Subtree of Another Tree

32

40

Easy

10 mins

1.6k

Size of Largest BST in Binary Tree

66

40

Easy

10 mins

5.5k

Preorder traversal of a BST

25

80

Moderate

15 mins

4.8k

Serialize and Deserialize Binary Tree

32

120

Hard

15 mins

1.2k

Delete Node In BST

16

80

Moderate

10 mins

1.1k

Kth smallest node in BST

20

80

Moderate

15 mins

2.8k

Closest Binary Search Tree Value

12

40

Easy

15 mins

0.7k

Count Univalue Subtrees

Moderate

80

71 upvotes

Binary Tree Pruning

Moderate

80

26 upvotes

Symmetric Tree

Easy

40

43 upvotes

Delete Leaf Nodes With Value X

Moderate

80

17 upvotes

Minimum Depth Of Binary Tree

Moderate

80

12 upvotes

Maximum Width In Binary Tree

Moderate

80

22 upvotes

Reverse Level Order Traversal

Moderate

80

34 upvotes

Right View

Moderate

80

32 upvotes

Boundary Traversal of Binary Tree

Hard

120

161 upvotes

Level Order Traversal

Easy

40

53 upvotes

Check Identical Trees

Moderate

80

26 upvotes

Partial BST

Moderate

80

52 upvotes

Convert Bst To The Greater Sum Tree

Moderate

80

12 upvotes

Distance between two nodes of a Tree

Moderate

80

19 upvotes

Print Nodes at Distance K From a Given Node

Hard

120

14 upvotes

Convert binary tree to mirror tree

Easy

40

20 upvotes

Maximum Level Sum

Easy

40

4 upvotes

Cousins of Given Node in Binary Tree

Moderate

80

9 upvotes

Subtree of Another Tree

Easy

40

32 upvotes

Size of Largest BST in Binary Tree

Easy

40

66 upvotes

Preorder traversal of a BST

Moderate

80

25 upvotes

Serialize and Deserialize Binary Tree

Hard

120

32 upvotes

Delete Node In BST

Moderate

80

16 upvotes

Kth smallest node in BST

Moderate

80

20 upvotes

Closest Binary Search Tree Value

Easy

40

12 upvotes