## Decision Tree

Decision Tree : Decision tree is the most powerful and popular tool for classification and prediction. A Decision tree is a flowchart like tree structure,… Read More »

Quick Links for Tree

Quizzes |

Decision Tree : Decision tree is the most powerful and popular tool for classification and prediction. A Decision tree is a flowchart like tree structure,… Read More »

Count the number of Binary Tree possible for a given Preorder Sequence length n. Input : n = 1 Output : 1 Input : n… Read More »

Given a n-ary tree and a number x, find and return the number of nodes which are greater than x. Example: In the given tree,… Read More »

Given a generic tree and a integer x. Find and return the node with next larger element in the tree i.e. find a node just… Read More »

Given an N-ary tree, find and return the node with second largest value in the given tree. Return NULL if no node with required value… Read More »

Given an N-Ary tree, find and return the node for which sum of data of all children and the node itself is maximum. In the… Read More »

A tree with N nodes and N-1 edges is given with 2 different colours for its nodes. Find the sub-tree with minimum colour difference i.e.… Read More »

Given a binary tree in which nodes are numbered from 1 to n. Given a node and a positive integer K. We have to print… Read More »

Given a binary tree and a node, we need to write a program to find inorder successor of this node. Inorder Successor of a node… Read More »

Given two arrays that represent Preorder traversals of a full binary tree and its mirror tree, we need to write a program to construct the… Read More »

Given a N-ary tree represented as adjacency list, we need to write a program to count all such nodes in this tree which has more… Read More »

Given Preorder , Inorder and Postorder traversals of some tree. Write a program to check if they all are of the same tree. Examples: Input… Read More »

Given a Binary Tree, print Right view of it. Right view of a Binary Tree is set of nodes visible when tree is visited from… Read More »

Given a binary tree, we need to write a program to swap leaf nodes in the given binary tree pairwise starting from from left to… Read More »

Given a binary tree, we need to write a program to print all leaf nodes of the given binary tree from left to right. That… Read More »