Binary Tree

16 problems to practice.

16 Total
15 Easy
1 Medium
0 Hard

Size, Sum, Maximum And Height Of A Binary Tree

1. You are given a partially written BinaryTree class. 2. You are required to complete the body of...

easy

Levelorder Traversal Of Binary Tree

1. You are given a partially written BinaryTree class. 2. You are required to complete the body of...

easy

Iterative Pre, Post And Inorder Traversals Of Binary Tree

1. You are given a partially written BinaryTree class. 2. You are required to complete the body o...

easy

Find And Nodetorootpath In Binary Tree

1. You are given a partially written BinaryTree class. 2. You are given an element. 3. You are req...

easy

Print K Levels Down

1. You are given a partially written BinaryTree class. 2. You are given a value k. 3. You are req...

easy

Path To Leaf From Root In Range

1. You are given a partially written BinaryTree class. 2. You are given a value lo and a value hi...

easy

Transform To Left-cloned Tree

1. You are given a partially written BinaryTree class. 2. You are required to complete the body of...

easy

Transform To Normal From Left-cloned Tree

1. You are given a partially written BinaryTree class. 2. You are required to complete the body of...

easy

Print Single Child Nodes

1. You are given a partially written BinaryTree class. 2. You are required to complete the body of...

easy

Remove Leaves In Binary Tree

1. You are given a partially written BinaryTree class. 2. You are required to complete the body of...

easy

Print Nodes K Distance Away

1. You are given a partially written BinaryTree class. 2. You are given a value data and a value k....

easy

Diameter Of A Binary Tree

1. You are given a partially written BinaryTree class. 2. You are required to complete the body of...

easy

Tilt Of Binary Tree

1. You are given a partially written BinaryTree class. 2. You are required to complete the body of...

easy

Is A Binary Search Tree

1. You are given a partially written BinaryTree class. 2. You are required to check if the tree is...

easy

Is Balanced Tree

1. You are given a partially written BinaryTree class. 2. You are required to check if the tree is...

easy

Largest Bst Subtree

1. You are given a partially written BinaryTree class. 2. You are required to find the root of larg...

medium