## Print the longest leaf to leaf path in a Binary tree

The std::is_pointer template is an inbuilt template in C++ STL which is used to check the type of pointer. It is defined in header file… Read More »

- Sum of cousins of a given node in a Binary Tree
- Flatten a binary tree into linked list
- Print nodes in top view of Binary Tree | Set 2
- Find n-th node in Postorder traversal of a Binary Tree
- Print the nodes of binary tree as they become the leaf node
- Print cousins of a given node in Binary Tree | Single Traversal
- Check if two nodes are cousins in a Binary Tree | Set-2
- Amazon On-Campus - 6 months Internship (SDE)
- Find the maximum node at a given level in a binary tree
- Sort the path from root to a given node in a Binary Tree
- Check if a binary tree is sorted level-wise or not
- Shortest distance between two nodes in an infinite binary tree
- Introduction to Merkle Tree
- Lowest Common Ancestor in Parent Array Representation
- Check whether a given binary tree is skewed binary tree or not?
- Check if two trees have same structure
- Print path between any two nodes in a Binary Tree
- Print Sum and Product of all Non-Leaf nodes in Binary Tree
- Count all pairs of adjacent nodes whose XOR is an odd number
- Print the number of set bits in each node of a Binary Tree
- Count pairs in a binary tree whose sum is equal to a given value x
- Search a node in Binary Tree
- Check if two trees are mirror of each other using level order traversal
- Remove edges connected to a node such that the three given nodes are in different trees
- Find maximum among all right nodes in Binary Tree
- Sum of nodes at maximum depth of a Binary Tree | Iterative Approach
- Memory representation of Binomial Heap
- Sum of all odd nodes in the path connecting two given nodes
- Level Order Successor of a node in Binary Tree
- Some Basic Theorems on Trees

The std::is_pointer template is an inbuilt template in C++ STL which is used to check the type of pointer. It is defined in header file… Read More »

Given a binary tree. Find if a given vertical level of the binary tree is sorted or not. (For the case when two nodes are… Read More »

Given a binary tree, find the vertical width of the binary tree. Width of a binary tree is the number of vertical paths. Examples: Input… Read More »

Given a binary tree, find the vertical width of the binary tree. Width of a binary tree is the number of vertical paths. In this… 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 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… 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… 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. My Personal… Read More »