## Find the largest after deleting the given elements

Given an array of integers, find the largest number after deleting the given elements. In case of repeating elements, delete one instance for every instance… Read More »

## Find length of longest Fibonacci like subsequence

Given a strictly increasing array A of positive integers where, . The task is to find the length of the longest Fibonacci-like subsequence of A.… Read More »

## Remove characters that appear more than k times

Given a string of lowercase letters, reduce it by removing the characters which appears more than k times in the string. Examples: Input : str… Read More »

## Replace repeating elements with greater that greatest values

Given an integer array, if any integer is repeating then replace it with a number greater than that number which has not been inserted yet… Read More »

## Find two non-overlapping pairs having equal sum in an Array

Given an unsorted array of integers. The task is to find any two non-overlapping pairs whose sum is equal. Two pairs are said to be… Read More »

## Number of anomalies in an array

Given an array A of N integers. An anomaly is a number for which the absolute difference between it and every other number in the… Read More »

## Reduce the string by removing K consecutive identical characters

Given a string ‘str’ and an integer ‘k’, the task is to reduce the string by applying the following operation: Choose a group of ‘k’… Read More »

## Count triplets in a sorted doubly linked list whose product is equal to a given value x

Given a sorted doubly linked list of distinct nodes(no two nodes have the same data) and a value x. The task is to count the… Read More »

## Check if the frequency of all the digits in a number is same

Given a positive number ‘N’, the task is to find whether ‘N’ is balanced or not. Output ‘YES’ if ‘N’ is a balanced number else… Read More »

## Check if a pair with given product exists in Linked list

Given a linked list, and a product K. The task is to check if there exist two numbers in the linked list whose product is… Read More »

## Largest element in the array that is repeated exactly k times

Given an array of integers and an integer ‘k’, the task is to find the largest element from the array that is repeated exactly ‘k’… Read More »

## Remove even frequency characters from the string

Given a string ‘str’, the task is to remove all the characters from the string that have even frequencies. Examples: Input: str = “aabbbddeeecc” Output:… Read More »

## Count majority element in a matrix

Given a NxM matrix of integers containing duplicate elements. The task is to find the count of all majority occurring elements in the given matrix,… Read More »

## Count minimum frequency elements in a linked list

Given a linked list containing duplicate elements. The task is to find the count of all minimum occurring elements in the given linked list. That… Read More »

## Sum of all maximum frequency elements in Matrix

Given a NxM matrix of integers containing duplicate elements. The task is to find the sum of all maximum occurring elements in the given matrix.… Read More »