What are Lists?
The java.util.List interface is a subtype of the java.util.Collection interface.
The List interface extends Collection and declares the behavior of a collection that stores...
In this post i would like show you a cool feature of java to handle functions with different parameter sets. For example if you want to find sum of a set of parameters which maybe 2or 3or400 you can...
Algorithm:
Eller's algorithm creates 'perfect' mazes, having only a single path
between any two cells, one row at a time. The algorithm itself is
incredibly fast, and far more...
ALGORITHM:
Jerry is hungry and needs cheese. Bur cheese is in a maze and jerry needs help to find the cheese.
The maze solving is a classic algorithm under backtracking and ai.The problem is to find...
ALGORITHM:
The permutation of a string is the rearrangement of the string in different orders to form different strings of the same length. A string of length n can have n! permutations.
Source:...
ALGORITHM:
The problem is to find all combination of letters in a string ,the question should not be mistaken with permutation of string.To find all combinations of a string we follow a simple method:...
ALGORITHM:
The problem is to input a number and find all numbers whose digits sum is equal to the input number.
i.e. if the input number is 5 then program should print numbers 5 14 23 32 41.
The...
CODE:
import java.util.Scanner;
import java.util.Stack;
public class inorderStack{
static Scanner in = new Scanner(System.in);
static node inputTree(){
...