Generic Tree
23 problems to practice.
Size Of Generic Tree
1. You are given a partially written GenericTree class. 2. You are required to complete the body of...
Maximum In A Generic Tree
1. You are given a partially written GenericTree class. 2. You are required to complete the body of...
Height Of A Generic Tree
1. You are given a partially written GenericTree class. 2. You are required to complete the body of...
Generic Tree - Traversals (pre-order, Post-order)
1. You are given a partially written GenericTree class. 2. You are required to complete the body of...
Level-order Of Generic Tree
1. You are given a partially written GenericTree class. 2. You are required to complete the body of...
Levelorder Linewise (generic Tree)
1. You are given a partially written GenericTree class. 2. You are required to complete the body of...
Levelorder Linewise Zig Zag
1. You are given a partially written GenericTree class. 2. You are required to complete the body...
Mirror A Generic Tree
1. You are given a partially written GenericTree class. 2. You are required to complete the body o...
Remove Leaves In Generic Tree
1. You are given a partially written GenericTree class. 2. You are required to complete the body of...
Linearize A Generic Tree
1. You are given a partially written GenericTree class. 2. You are required to complete the body of...
Find In Generic Tree
1. You are given a partially written GenericTree class. 2. You are required to complete the body of...
Node To Root Path In Generic Tree
1. You are given a partially written GenericTree class. 2. You are required to complete the body of...
Lowest Common Ancestor (generic Tree)
1. You are given a partially written GenericTree class. 2. You are required to complete the body of...
Distance Between Two Nodes In A Generic Tree
1. You are given a partially written GenericTree class. 2. You are required to complete the body...
Are Trees Similar In Shape
1. You are given a partially written GenericTree class. 2. You are required to complete the body o...
Are Trees Mirror In Shape
1. You are given a partially written GenericTree class. 2. You are required to complete the body of...
Is Generic Tree Symmetric
1. You are given a partially written GenericTree class. 2. You are required to complete the body of...
Node With Maximum Subtree Sum
1. You are given a partially written GenericTree class. 2. You are required to find and print the n...
Diameter Of Generic Tree
1. You are given a partially written GenericTree class. 2. You are required to find and print the d...
Predecessor And Successor Of An Element
1. You are given a partially written GenericTree class. 2. You are required to find the preorder pr...
Ceil And Floor In Generic Tree
1. You are given a partially written GenericTree class. 2. You are required to find the ceil and fl...
Kth Largest Element In Tree
1. You are given a partially written GenericTree class. 2. You are given a number k. You are requir...
Iterative Preorder And Postorder Of Generic Tree
1. You are given a partially written GenericTree class. 2. You are require to complete the body of...