# Binary Tree Archive

## Lowest Common Ancestor (LCA) for n-ary Tree

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 …

## Check if a binary tree is binary search tree or not in java

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 …

## Find minimum and maximum elements in binary search tree in java

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 …

## How to delete a node from binary search tree in java

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 …

## Binary search tree in java

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 …

## Count subtrees with Sum equal to target in binary tree

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 …

## Lowest Common Ancestor (LCA) of binary search tree in java

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 …

## Lowest Common Ancestor (LCA) of binary tree in java

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 …

## Boundary traversal of binary tree in java

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 …

## get level of a node in binary tree in java

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 …