# Category: programming

## Find the maximum difference in an array

Problem: Given an array arr, find the maximum j – i such that arr > arr. We have to find the maximum difference in an array. Solution: We will …

## Find the equilibrium position of the array

Problem: Write a program to find the equilibrium position of the array. Ex: given an array: 1,2,3,4,5,6,7,8       equilibrium position should be 5(element 6) i.e  sum of numbers before …

## Find missing characters in a string

Problem: Find missing characters in a string. There is a string , where a character is missing.Print the missing character.The range is present in the string and the characters …

## Anagrams: Check if two strings are anagrams or not

Problem: Write a Java program to check if two strings are anagrams or not? This is one of the famous programming interview question. This program was asked in online …

## Frequency of elements in array

Problem: Find frequency of elements in an array of integers. Count number of occurrences of an element in an array. We have to find out frequency of each element in …