Given a Binary Tree, the task is to find the sum of all such nodes from the given tree whose sum of left and right… Read More

# Tag Archives: PostOrder Traversal

Given a Binary Tree and an integer K, the task is to delete nodes from the given Tree such that the sum of all nodes… Read More

Given a Binary Tree, the task is for each level is to print the total number of nodes from all lower levels which are less… Read More

Given a Binary Tree, the task is to find the node from the given tree which has the maximum number of nodes in its subtree… Read More

Given a binary tree and an integer K, the task is to count the possible pairs of leaf nodes from the given binary tree such… Read More

Given a Binary Tree, the task is to find the length of the longest straight path of the given binary tree. Straight Path is defined… Read More

Given a Binary Tree and an array arr[] consisting of values of nodes to be deleted, the task is to print Inorder Traversal of the… Read More

Given a Tree with N nodes values from 1 to N and N – 1 edges. The task is to find the maximum matching in… Read More

Given a Binary Tree and an integer D, the task is to check if the distance between all pairs of the same node values in… Read More

Given a Binary Tree consisting of N nodes, the task is to print its Mix Order Traversal. Mix Order Traversal is a tree traversal technique,… Read More

Prerequisites:- Morris Inorder Traversal, Tree Traversals (Inorder, Preorder and Postorder)Given a Binary Tree, the task is to print the elements in post order using O(N)… Read More

Given a binary tree consisting of N nodes, the task is to print the nodes that are just above the leaf node.Examples: Input: N =… Read More

Given a Binary Tree and a positive integer K. The task is to check whether the Balanced BST of size K exists in a given… Read More

Given two integers N and K where N denotes the height of a binary tree, the task is to find the parent of the node… Read More

Prerequisite: Product of nodes at k-th level in a tree represented as string Given an integer ‘K’ and a binary tree in string format. Every… Read More