## Queries to find the last non-repeating character in the sub-string of a given string

Given a string str, the task is to answer Q queries where every query consists of two integers L and R and we have to… Read More »

- Count common characters in two strings
- Find alphabet in a Matrix which has maximum number of stars around it
- Find two numbers whose divisors are given in a random order
- Count occurrences of a string that can be constructed from another given string
- Count Triplets such that one of the numbers can be written as sum of the other two
- Find the minimum number of operations required to make all array elements equal
- Find the element having different frequency than other array elements
- Minimum sum of two numbers formed from digits of an array in O(n)
- Minimize the number of replacements to get a string with same number of 'a', 'b' and 'c' in it
- Make palindromic string non-palindromic by rearranging its letters
- Remove all occurrences of any element for maximum array sum
- Sum of elements in an array with frequencies greater than or equal to that element
- Count valid pairs in the array satisfying given conditions
- Sum of elements in an array having prime frequency
- Count all elements in the array which appears at least K times after their first occurrence
- Frequency of each element of an array of small ranged values
- Count pairs in an array such that LCM(arr[i], arr[j]) > min(arr[i],arr[j])
- Python | Element with largest frequency in list
- Count of quadruplets from range [L, R] having GCD equal to K
- Number of quadruples where the first three terms are in AP and last three terms are in GP
- Count the number of pairs (i, j) such that either arr[i] is divisible by arr[j] or arr[j] is divisible by arr[i]
- Maximum product from array such that frequency sum of all repeating elements in product is less than or equal to 2 * k
- Number of ways in which the substring in range [L, R] can be formed using characters out of the range
- Character whose frequency is equal to the sum of frequencies of other characters of the given string
- Maximum count of pairs which generate the same sum
- Find the last non repeating character in string
- Maximum points covered after removing an Interval
- Maximum occurrence of prefix in the Array
- Minimum operations to make counts of remainders same in an array
- Largest even number that can be formed by any number of swaps

Given a string str, the task is to answer Q queries where every query consists of two integers L and R and we have to… Read More »

Given an alphanumeric string str, the task is to sort the string in such a way that if a position is occupied by an alphabet… Read More »

Given a string str, the task is to find the last non-repeating character in it. For example, if the input string is “GeeksForGeeks”, then the… Read More »

Given an array of digits (values are from 0 to 9), find the minimum possible sum of two numbers formed from digits of the array.… Read More »

Given an integer K and a range [L, R], the task is to count the quadruplet pairs from the given range having gcd equal to… Read More »

Given an array arr[] of N integers. The task is to find the minimum number of given operations required to reduce the array to 0… Read More »

Given a string str containing only lowercase characters. The task is to print the characters having an odd frequency in the order of their occurrence.… Read More »

Given an integer N in the form of string, the task is to find the largest even number from the given number when you are… Read More »

Given a linked list, the task is to find the sum of all the odd frequency nodes from the given linked list. Examples: Input: 8… Read More »

Given an array arr[] of N integers where |arr[i] ≤ 1000| for all valid i. The task is to count the pairs of integers from… Read More »

Given N intervals in the form [l, r] and an integer Q. The task is to find the interval which when removed results in the… Read More »

Given a string str, the task is to check if the frequency of any character is more than half the length of the given string.… Read More »

Given two numbers N and M, the task is to find the highest power of M that divides N. Note: M > 1 Examples: Input:… Read More »

Given an array of positive integers, remove all the occurrences of element to get the maximum sum of the remaining array Examples: Input : arr… Read More »

Given a string str of lowercase English alphabets and an integer m. The task is to count how many positions are there in the string… Read More »