Algorithm Archive

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 …

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 …

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 …