Java Discover

Java Discover is a Java technical blog mainly created for sharing our thoughts and programming question to the world of Java Programmers..

Showing posts with label Algorithm. Show all posts
Showing posts with label Algorithm. Show all posts

Counting nodes in a tree? Yes how to get Binary Tree size

›
Counting nodes in a tree? Yes how to get Binary Tree size nothing but counting all the nodes in a Binary Tree. For example the size of the ...

How to do Iterative Postorder Traversal in BST

›
Earlier we have seen lot of tutorials related to Binary Search Tree like How to find the diameter of a binary tree Converting a Binary T...

How to write a simple and easy Binary search algorithm

›
Given a sorted array array[] of n elements and need to find the element 'val' present in the array or not by using Binary search te...

Cool !!! How to find the diameter of a binary tree

›
Given a binary tree, you need to compute the length of the diameter of the tree. The diameter of a binary tree is the length of the  longes...

Know How to find all leaf nodes in binary tree

›
Create a Binary Tree with from the given array of values and then find all the leaf nodes from left to right. Leaf nodes are nothing but bo...

Longest Common Subsequence (LCS) algorithm using Dynamic Programming in java

›
The Longest Common Subsequence (LCS) problem is given with two strings like "ABAZDC" and "BACBAD". LCS is to find their...
›
Home
View web version
Powered by Blogger.