#
Algorithm Archive

I have been posting data structure and algorithms interview questions on various topics such as Array, Queue, Stack, Binary tree, LinkedList, String, Number, ArrayList, etc. So I am consolidating a list of programs to create …

In this program, we will print prime numbers from 1 to 100 in java. A prime number is a number which has only two divisors 1 and itself. To check if the number is prime …

If you want to practice data structure and algorithm programs, you can go through 100+ data structure and algorithm programs. In this post, we will see how to find Minimum Number of Jumps to reach …

If you want to practice data structure and algorithm programs, you can go through 100+ data structure and algorithm programs. In this post, we will see how to sort an array of 0s, 1s and …

If you want to practice data structure and algorithm programs, you can go through 100+ data structure and algorithm programs. Problem Given an array with positive integers as elements indicating the maximum length …

If you want to practice data structure and algorithm programs, you can go through 100+ data structure and algorithm programs. In this post, we will see how to find Inorder Successor in a Binary Search …

If you want to practice data structure and algorithm programs, you can go through 100+ data structure and algorithm programs. In this post, we will see about how to find Lowest Common Ancestor of a …

If you want to practice data structure and algorithm programs, you can go through 100+ data structure and algorithm programs. In this post, we will see about how to find largest rectangular area in a …

If you want to practice data structure and algorithm programs, you can go through 100+ data structure and algorithm programs. Given two Strings A and B. Find the length of the Longest Common Subsequence (LCS) …

If you want to practice data structure and algorithm programs, you can go through 100+ data structure and algorithm programs. Kruskal’s Algorithm solves the problem of finding a Minimum Spanning Tree(MST) of any given connected …

If you want to practice data structure and algorithm programs, you can go through 100+ data structure and algorithm programs. In this post, we will see about Coin Change problem in java. Problem Given an …