## Check if frequency of each element in given array is unique or not

Given an array arr[] of N positive integers where the integers are in the range from 1 to N, the task is to check whether… Read More »

- Sorting a Map by value in C++ STL
- Real-time application of Data Structures
- Check if sum of Fibonacci elements in an Array is a Fibonacci number or not
- Check if given words are present in a string
- Count of subarrays having exactly K perfect square numbers
- Kth most frequent Character in a given String
- Count of substrings of length K with exactly K distinct characters
- LRU Cache in Python using OrderedDict
- Count triplets such that sum of any two number is equal to third | Set 2
- CamelCase Pattern Matching
- Length of the smallest substring which contains all vowels
- Longest permutation subsequence in a given array
- Remove odd frequency characters from the string
- Check if an Array is a permutation of numbers from 1 to N
- Quadratic Probing in Hashing
- Count of greater elements for each element in the Array
- Longest increasing sub-sequence formed by concatenating array to itself N times
- Smallest subarray from a given Array with sum greater than or equal to K
- Find k most frequent in linear time
- Sum of prime numbers in range [L, R] from given Array for Q queries
- Count triplets in an array such that i<j<k and a[j] - a[i] = a[k] - a[j] = D
- Count the elements having frequency equals to its value
- Minimum number of Water to Land conversion to make two islands connected in a Grid
- Program to implement Separate Chaining in C++ STL without the use of pointers
- Count distinct substrings of a string using Rabin Karp algorithm
- Lexicographical smallest number after at most K consecutive swaps
- Count of subarrays whose sum is a perfect square
- Maximum sum subarray having sum less than or equal to given sum using Set
- Shortest subarray to be removed to make all Array elements unique
- C++ program to check whether a String is a Pangram or not

Given an array arr[] of N positive integers where the integers are in the range from 1 to N, the task is to check whether… Read More »

Given a string, the task is to write Java program to print all the duplicate characters with their frequency Example: Input: str = “geeksforgeeks” Output:… Read More »

Given a string str and an integer K, the task is to find a string S such that it has exactly K subsequences of given… Read More »

Given an array arr[] of N integers, the task is to replace each element of Array with their rank in array. The rank of an… Read More »

Given an array arr[] consisting of N positive integers, the task is to print all pairs of array elements whose sum does not exist in… Read More »

HashMap is a class that implements the Map interface of Java Collections Framework. The most important feature of a HashMap is that it has a… Read More »

Given an array of strings arr[] containing N words, the task is to print all possible palindromic string by combining any two strings from the… Read More »

Given a string S and an integer K, the task is to check if it is possible to distribute these characters into two strings such… Read More »

Given an array arr[] consisting of N integers, the task is to find the start and end indices of the first subarray with a Negative… Read More »

Given two arrays A[] and B[] consisting of N positive integers and a integer M, the task is to find the minimum value of X… Read More »

Given a string S, the task is to find the number of ways to split the given string S into two non-empty palindromic strings. Examples:… Read More »

Given an array arr[] of size N, and Q queries of the form {i, k} for which, the task is to print the most frequent… Read More »

Given an array arr[] of N integers, the task is to find the maximum absolute difference between distinct elements of the array. Examples: Input: arr[]… Read More »

Given an array arr[] of N integers, the task is to find the size of largest subarray with frequency of all elements same. Examples: Input:… Read More »

Given an array arr[] of length N, the task is to print the number of array elements which cannot form a pair with any other… Read More »