## Counting values greater than equal to x after increments

Consider an array of size n with initial 0 values. How many indices will contain value at least x after performing m range updates. In… Read More »

- First non-repeating character using one traversal of string | Set 2
- Count number of triplets with product equal to given number with duplicates allowed | Set-2
- Sum of all odd frequency elements in an array
- For each element in 1st array count elements less than or equal to it in 2nd array | Set 2
- Check if two strings are permutation of each other
- Count numbers in range such that digits in it and it's product with q are unequal
- Find the player who rearranges the characters to get a palindrome string first
- Count Occurences of Anagrams
- Find array elements with frequencies in range [l , r]
- Find a number that divides maximum array elements
- Replace every elements in the array by its frequency in the array
- Longest Subsequence with at least one common digit in every element
- Frequency of each element of an array of small ranged values
- Find the element having different frequency than other array elements
- Counting the frequencies in a list using dictionary in Python
- Construct a frequency array of digits of the values obtained from x^1, x^2, ........, x^n
- Count pairs from two arrays having sum equal to K
- Lexicographically largest string formed from the characters in range L and R
- Find the count of palindromic sub-string of a string in its sorted form
- Count Triplets such that one of the numbers can be written as sum of the other two
- Sorting without comparison of elements
- Find maximum number of elements such that their absolute difference is less than or equal to 1
- Counting frequencies of array elements
- Generate a number such that the frequency of each digit is digit times the frequency in given number
- Sum of elements in an array having prime frequency
- Frequency Measuring Techniques for Competitive Programming
- Remove characters that appear more than k times
- Longest common anagram subsequence from N strings
- Find the smallest after deleting given elements
- Sum of all elements repeating 'k' times in an array

Consider an array of size n with initial 0 values. How many indices will contain value at least x after performing m range updates. In… Read More »

Given a string of length n of capital letters. The task is to find the count of ‘GFG’ subsequence in the given string. Examples: Input… Read More »

Suppose we have an elements in ArrayList, we can count the occurrences of elements present in a number of ways. HashMap This data structure uses… Read More »

Given a string S. Count number of substrings in which each character occurs at most k times. Assume that the string consists of only lowercase… Read More »

Two strings are given, we need to find whether we can form second string by swapping the character of the first string. Examples: Input :… Read More »

Given an array arr[] of n positive integer. The task is find the size of the subset formed from the elements of the given array… Read More »

Given two strings which are of lengths n and n+1. The second string contains all the character of the first string, but there is one… Read More »

You are given a string s(only lowercase alphabets) with length n. Print the position of every character of the String it must acquire so that… Read More »

Given a string, find minimum number of changes to it so that all substrings of the string become distinct. Examples : Input : str =… Read More »

Given an array, find the least frequent element in it. If there are multiple elements that appear least number of times, print any one of… Read More »

You are given two strings str1 and str2. You have to check if the two strings share a common substring. Examples : Input : str1… Read More »

Given a list of strings, find the largest string among all. Largest string is the string with largest number of unique characters. Example : Input… Read More »

Given a linked list of characters. The task is to find the maximum occurring character in the linked list. if their are multiple answer return… Read More »

Given an array of N integers. We need to find an index such that Frequency of Even numbers on its left side is equal to… Read More »

Given a string, convert the string to palindrome without any modifications like adding a character, removing a character, replacing a character etc. Examples: Input :… Read More »