## Count of subsequences consisting of the same element

Given an array A[] consisting of N integers, the task is to find the total number of subsequence which contain only one distinct number repeated… 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
- Count triplets in an array such that i<j<k and a[j] - a[i] = a[k] - a[j] = D
- Sum of prime numbers in range [L, R] from given Array for Q queries
- Minimum number of Water to Land conversion to make two islands connected in a Grid
- Count the elements having frequency equals to its value
- Program to implement Separate Chaining in C++ STL without the use of pointers
- Count of subarrays whose sum is a perfect square
- Count distinct substrings of a string using Rabin Karp algorithm
- Lexicographical smallest number after at most K consecutive swaps
- 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 A[] consisting of N integers, the task is to find the total number of subsequence which contain only one distinct number repeated… Read More »

Given a two integers N and K, the task is to check if N leaves only distinct remainders when divided by all integers in the… Read More »

What is String-Hashing? String hashing is the way to convert a string into an integer known as hash of that string.An ideal hashing is the… Read More »

Given two arrays A[] and B[] consisting of strings, the task is to print the strings from array A[] having all strings in B[] as… Read More »

Given an array A[ ] consisting of N positive integers, the task is to find the number of triplets A[i], A[j] & A[k] in the… Read More »

Given an array A[ ] consisting of N strings, the task is to count the number of pairs of possible strings that on merging forms… Read More »

Given a string S in the form of a sentence, the task is to find the word from the text with maximum number of its… Read More »

Given N axis-parallel rectangles in a 2-D cartesian coordinate system and coordinates of 4N-1 vertices, the task is to find the single vertex missing.Examples: Input:… Read More »

Given a string, count the number of distinct substrings using Rabin Karp Algorithm. Examples: Input : str = “aba” Output : 5 Explanation : Total… Read More »

Given an array arr[] representing a list of prime factors of a given number, the task is to find the product of divisors of that… Read More »

Given an array arr[] and integer K, the task is to split the array into subsets of size K, such that each subset consists of… Read More »

Given a number in form of string str and an integer K, the task is to find the smallest integer that can be formed after… Read More »

Given a number N, the task is to count the number of unique digits in the given number. Examples: Input: N = 22342 Output: 2 Explanation:The digits… Read More »

Given a string s and an integer X, our task is to find the number of distinct palindromic strings of length X from the given… Read More »

Given an array arr[] of N strings and an integer K, the task is to print K strings which occurred the most number of times… Read More »