Generic Tree

23 problems to practice.

23 Total
16 Easy
7 Medium
0 Hard

Size Of Generic Tree

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

medium

Maximum In A Generic Tree

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

easy

Height Of A Generic Tree

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

easy

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...

easy

Level-order Of Generic Tree

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

easy

Levelorder Linewise (generic Tree)

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

easy

Levelorder Linewise Zig Zag

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

medium

Mirror A Generic Tree

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

medium

Remove Leaves In Generic Tree

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

easy

Linearize A Generic Tree

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

easy

Find In Generic Tree

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

easy

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...

easy

Lowest Common Ancestor (generic Tree)

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

easy

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...

easy

Are Trees Similar In Shape

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

easy

Are Trees Mirror In Shape

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

easy

Is Generic Tree Symmetric

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

easy

Node With Maximum Subtree Sum

1. You are given a partially written GenericTree class. 2. You are required to find and print the n...

medium

Diameter Of Generic Tree

1. You are given a partially written GenericTree class. 2. You are required to find and print the d...

medium

Predecessor And Successor Of An Element

1. You are given a partially written GenericTree class. 2. You are required to find the preorder pr...

easy

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...

easy

Kth Largest Element In Tree

1. You are given a partially written GenericTree class. 2. You are given a number k. You are requir...

medium

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...

medium