Binary Tree
16 problems to practice.
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...
Levelorder Traversal Of Binary Tree
1. You are given a partially written BinaryTree class. 2. You are required to complete the body of...
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...
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...
Print K Levels Down
1. You are given a partially written BinaryTree class. 2. You are given a value k. 3. You are req...
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...
Transform To Left-cloned Tree
1. You are given a partially written BinaryTree class. 2. You are required to complete the body of...
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...
Print Single Child Nodes
1. You are given a partially written BinaryTree class. 2. You are required to complete the body of...
Remove Leaves In Binary Tree
1. You are given a partially written BinaryTree class. 2. You are required to complete the body of...
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....
Diameter Of A Binary Tree
1. You are given a partially written BinaryTree class. 2. You are required to complete the body of...
Tilt Of Binary Tree
1. You are given a partially written BinaryTree class. 2. You are required to complete the body of...
Is A Binary Search Tree
1. You are given a partially written BinaryTree class. 2. You are required to check if the tree is...
Is Balanced Tree
1. You are given a partially written BinaryTree class. 2. You are required to check if the tree is...
Largest Bst Subtree
1. You are given a partially written BinaryTree class. 2. You are required to find the root of larg...