## Find distance from root to given node in a binary tree | GeeksforGeeks

Hello friends! And, welcome to another tutorial on GeeksforGeeks. In this video we are going to understand the program which helps us in finding distance from root to a given node in a binary tree. First, let us see an example. In this example, we take 45as input from user. Since 5 is the root […]

## Boundary Traversal of binary tree | GeeksforGeeks

Hello friends! And, welcome to another tutorial on GeeksforGeeks. In this video we are going to understand the program which prints boundary nodes of a binary tree in anti-clockwise fashion. First, let us take an example IN this example, the boundary traversal will be 20 8 4 10 14 25 22. Now, let us have […]

## Longest consecutive sequence in Binary tree | GeeksforGeeks

Hello friends! And, welcome to another tutorial on GeeksforGeeks. In this video we are going to understand the program which finds the longest consecutive sequence in a binary tree ..First, let us take an example.. In this example, for tree 1 the longest consecutive path is 9 10 11 and its length is 3.. In […]

## Convert a BST to a Binary Tree so that sum of greater keys is added to every key | GeeksforGeeks

Hello friends! And, welcome to another tutorial on GeeksforGeeks. In this video we are going to understand the program which Convert a BST to a Binary Tree such that sum of all greater keys is added to every key FIrst, let us take an example Now, let us see the approach. Solution: Do reverse Inoorder […]

## Iterative searching in Binary Search Tree | GeeksforGeeks

Hello friends! And, welcome to another tutorial on GeeksforGeeks. In this video we are going to understand the program which searches for a number iteratively in a binary search tree. First, let us take an example. For example, in the following tree, if the searched key is 13, then function should return true and if […]

## Convert a given Binary Tree to Doubly Linked List | Set 2 | GeeksforGeeks

Hello friends! And, welcome to another tutorial on GeeksforGeeks. In this video we are going to understand the program which converts a given binary tree to doubly linked list.. First, let us take an example. The left and right pointers in nodes are to be used as previous and next pointers respectively in converted DLL. […]

## Inorder Non-threaded Binary Tree Traversal without Recursion or Stack | GeeksforGeeks

Hello friends! And, welcome to another tutorial on GeeksforGeeks. In this video we are going to understand the program which does the inorder traversal of a binary tree without recursion or stack… First, let us take an example. We pass root of tree and output the inorder traversal without using any extra space.. Now, let […]

## Sum of all nodes in a binary tree | GeeksforGeeks

Hello friends! And, welcome to another tutorial on GeeksforGeeks. In this video we are going to understand the program which helps us in finding the Sum of all nodes in a binary tree. First let us take an example The sum of nodes of this binary tree is 15. Now let us look at the […]

## Remove all the half nodes of a given Binary Tree | GeeksforGeeks

Hello friends! And, welcome to another tutorial on GeeksforGeeks. In this video we are going to understand the program which helps us in removing all the half nodes in a binary tree. First, let us see an example. In the tree given on the left, nodes 7 5 and 9 are half nodes. So, we […]