# Tag Archives: Binary Tree

Given a binary tree, find the vertical width of the binary tree. The width of a binary tree is the number of vertical paths. Examples: … Read More
Given a Binary tree, the task is to find the vertical width of the Binary tree. The width of a binary tree is the number… Read More
Given an array that represents a tree in such a way that array indexes are values in tree nodes and array values give the parent… 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 in… 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, find the sum of all the leaf nodes.Examples:   Input : 1 / \ 2 3 / \ / \ 4 5… Read More
Given a Binary Tree, find sum of all right leaves in it. Similar article: Find sum of all left leaves in a given Binary Tree Example… Read More
Given the binary Tree and the two nodes say ‘a’ and ‘b’, determine whether the two nodes are cousins of each other or not.Two nodes… Read More
It depends on what traversals are given. If one of the traversal methods is Inorder then the tree can be constructed, otherwise not.    … Read More