# Top Trees Interview Questions

Filters

Topics

+ 15 more

Company

+ 30 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

69

80

Moderate

30 mins

2.5k

Binary Tree Pruning

23

80

Moderate

20 mins

0.8k

Symmetric Tree

41

40

Easy

20 mins

4.9k

Delete Leaf Nodes With Value X

16

80

Moderate

27 mins

0.6k

Minimum Depth Of Binary Tree

11

80

Moderate

20 mins

0.8k

Maximum Width In Binary Tree

20

80

Moderate

38 mins

3k

Reverse Level Order Traversal

32

80

Moderate

30 mins

3k

Right View

30

80

Moderate

35 mins

2.6k

Boundary Traversal of Binary Tree

156

120

Hard

20 mins

10.4k

Level Order Traversal

47

40

Easy

15 mins

5.1k

Check Identical Trees

23

80

Moderate

20 mins

3.5k

Partial BST

48

80

Moderate

25 mins

9k

Convert Bst To The Greater Sum Tree

11

80

Moderate

30 mins

1k

Distance between two nodes of a Tree

17

80

Moderate

25 mins

1.2k

Print Nodes at Distance K From a Given Node

13

120

Hard

20 mins

0.9k

Convert binary tree to mirror tree

18

40

Easy

15 mins

1.8k

Maximum Level Sum

2

40

Easy

15 mins

0.4k

Cousins of Given Node in Binary Tree

8

80

Moderate

10 mins

0.2k

Subtree of Another Tree

31

40

Easy

10 mins

1.6k

Size of Largest BST in Binary Tree

63

40

Easy

10 mins

5k

Preorder traversal of a BST

23

80

Moderate

15 mins

4.1k

Serialize and Deserialize Binary Tree

29

120

Hard

15 mins

1.2k

Delete Node In BST

16

80

Moderate

10 mins

1k

Kth smallest node in BST

20

80

Moderate

15 mins

2.5k

Closest Binary Search Tree Value

11

40

Easy

15 mins

0.6k

Count Univalue Subtrees

Moderate

80

69 upvotes

Binary Tree Pruning

Moderate

80

23 upvotes

Symmetric Tree

Easy

40

41 upvotes

Delete Leaf Nodes With Value X

Moderate

80

16 upvotes

Minimum Depth Of Binary Tree

Moderate

80

11 upvotes

Maximum Width In Binary Tree

Moderate

80

20 upvotes

Reverse Level Order Traversal

Moderate

80

32 upvotes

Right View

Moderate

80

30 upvotes

Boundary Traversal of Binary Tree

Hard

120

156 upvotes

Level Order Traversal

Easy

40

47 upvotes

Check Identical Trees

Moderate

80

23 upvotes

Partial BST

Moderate

80

48 upvotes

Convert Bst To The Greater Sum Tree

Moderate

80

11 upvotes

Distance between two nodes of a Tree

Moderate

80

17 upvotes

Print Nodes at Distance K From a Given Node

Hard

120

13 upvotes

Convert binary tree to mirror tree

Easy

40

18 upvotes

Maximum Level Sum

Easy

40

2 upvotes

Cousins of Given Node in Binary Tree

Moderate

80

8 upvotes

Subtree of Another Tree

Easy

40

31 upvotes

Size of Largest BST in Binary Tree

Easy

40

63 upvotes

Preorder traversal of a BST

Moderate

80

23 upvotes

Serialize and Deserialize Binary Tree

Hard

120

29 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

11 upvotes