# Algorithm Archive

## Bellman Ford Algorithm in java

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 Bellman ford algorithm in java. is used …

## Serialize and Deserialize n-ary tree

If you want to practice data structure and algorithm programs, you can go through 100+ data structure and algorithm programs. Problem Given a Generic Tree, Serialize and Deserialize it. Serialization is a basically a representation …

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

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 Lowest Common Ancestor for n-ary Tree. Problem Given …

## Find the local minima in array

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 the local minima in the array. …

## Edit Distance Problem

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 edit distance problem in java Problem Given two strings …

## Sliding Window Maximum in java

In this post, we will see about Sliding Window Maximum in java Problem Given an Array of integers and an Integer k, Find the maximum element of from all the contiguous subarrays of size K. …

## Count number of occurrences (or frequency) of each element in a sorted array

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 count number of occurrences (or frequency) of …

## Find subarrays with given sum in an array.

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 subarrays with given sum in an …

## Find peak element in the array

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 peak element in the array. Problem …

## Count 1’s in sorted Binary Array

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 count number of 1’s in sorted binary …