Sum of all odd frequency elements in an array
Given an array of integers containing duplicate elements. The task is to find the sum of all odd occurring elements in the given array. That… Read More »
Given an array of integers containing duplicate elements. The task is to find the sum of all odd occurring elements in the given array. That… Read More »
Given a NxM matrix and a product K. The task is to check if a pair with the given product exists in the matrix or… Read More »
Given a NxM matrix and a sum S. The task is to check if a pair with given Sum exists in the matrix or not.… Read More »
Given an array of integers containing duplicate elements. The task is to find the sum of all even occurring elements in the given array. That… Read More »
Given an array of integers containing duplicate elements. The task is to find the sum of all highest occurring elements in the given array. That… Read More »
Given an array of integers containing duplicate elements. The task is to find the sum of all least occurring elements in the given array. That… Read More »
Given a string str, the task is to check if it can be rearranged to get a special palindromic string. If we can make it… Read More »
Given are two integers (x and n). The task is to find an array such that it contains the frequency of index numbers occurring in… Read More »
Given two strings. The task is to check that is there any common character in between two strings. Examples: Input: s1 = “geeksforgeeks”, s2 =… Read More »
Design a data structure for LRU Cache. It should support the following operations: get and set. get(key) – Get the value (will always be positive)… Read More »
Given a string consisting of only lowercase English alphabets. The task is to find and replace the minimal number of characters by any lower case… Read More »
Given an integer array, sort the array according to the frequency of elements in decreasing order, if frequency of two elements are same then sort… Read More »
In this sorting algorithm, Hash Function f is used with the property of Order Preserving Function which states that if . Hash Function: f(x) =… Read More »
Given a string str containing only lowercase alphabets, the task is to minimize the length of the string after performing the following operation: Delete all… Read More »
Given N numbers, the task is to find the minimum removal of numbers such that GCD of the remaining numbers is greater than initial GCD… Read More »