Binary Tree Archive
In this post, we will see about Lowest Common Ancestor for n-ary Tree. Problem Given a n-ary tree also known as a Generic Tree and also two nodes. You need to find the Lowest common …
If you want to practice data structure and algorithm programs, you can go through data structure and algorithm interview questions. In this post, we will see how to check if given binary tree is binary search …
In this post, we will see how to find minimum and maximum elements in binary search tree. Finding minimum element: Minimum element is nothing but leftmost node in binary search tree, so traverse left until …
If you want to practice data structure and algorithm programs, you can go through data structure and algorithm interview questions. In this post, we will see how to delete a node from binary search tree. There …
If you want to practice data structure and algorithm programs, you can go through data structure and algorithm interview questions. Binary search tree is a special type of binary tree which have following properties. Nodes which …
In this post, we will see about how to count subtrees with Sum equal to target in binary tree Problem Given a Binary tree and an integer. You need to find the number of subtrees …
If you want to practice data structure and algorithm programs, you can go through data structure and algorithm interview questions. In this post, we will see how to find lowest common ancestor(LCA) of two nodes in …
If you want to practice data structure and algorithm programs, you can go through data structure and algorithm interview questions. In this post, we will see how to find lowest common ancestor(LCA) of two nodes in …
If you want to practice data structure and algorithm programs, you can go through data structure and algorithm interview questions. In this post, we will see boundary traversal of binary tree in java. Lets understand boundary …
If you want to practice data structure and algorithm programs, you can go through data structure and algorithm interview questions. This is 11th part of java binary tree tutorial. Java Binary tree tutorial: Binary tree in …