## Count pairs in an array whose absolute difference is divisible by K

Given an array arr[] and a positive integer K. The task is to count the total number of pairs in the array whose absolute difference… Read More »

- Minimum deletions required to make frequency of each letter unique
- Sum of nodes in the left view of the given binary tree
- Check duplicates in a stream of strings
- Find missing elements from an Array
- Print characters having even frequencies in order of occurrence
- XOR of elements in an array having prime frequency
- Sum of nodes in the right view of the given binary tree
- XOR of K smallest prime and composite numbers from the given array
- Bitwise AND of the sum of prime numbers and the sum of composite numbers in an array
- Absolute difference between the XOR of Non-Prime numbers and Prime numbers of an Array
- Print characters having prime frequencies in order of occurrence
- Count equal element pairs in the given array
- Product of elements in an array having prime frequency
- GCD of elements which occur prime number of times
- Print the season name of the year based on the month number
- Area of the largest square that can be formed from the given length sticks using Hashing
- Check if two Integer are anagrams of each other
- XOR of K largest prime and composite numbers from the given array

Given an array arr[] and a positive integer K. The task is to count the total number of pairs in the array whose absolute difference… Read More »

Given an integer X, the task is to find the three distinct integers greater than 1 i.e. A, B and C such that (A *… Read More »

HashTable: Hashtable is designed to use a special function called the Hash function which is used to map a given value with a particular key for… Read More »

Given two strings str and str1, the task is to check whether one string can be converted to other by using the following operation: Convert… Read More »

Given a space-separated string str, the task is to find the first substring whose reverse is a word in the string. All characters of the… Read More »

Given an array arr[] consisting of even integers. At each move, you can select any even number X from the array and divide all the… Read More »

Given an array arr of N elements, the task is to find the length of the smallest subarray of the given array that contains at… Read More »

Given an array arr[] of N positive elements, the task is to find a pair in the array such that the digit sum of elements… Read More »

Given a string str consisting of alphanumeric characters, the task is to check whether the string contains all the digits from 1 to 9. Examples:… Read More »

Given a string str consisting of lowercase English alphabets. The task is to change each character of the string with the next letter (in a… Read More »

Given a dictionary, and two words start and target (both of the same length). Find length of the smallest chain from start to target if… Read More »

Given a string S of length N containing only lower case letters. Also, given Q queries where each query consists of an integer P such… Read More »

Given an array arr. The task is to divide the array into the minimum number of subarrays containing unique elements and return the count of… Read More »

Given a list of integers from the range [1, N] with some of the elements missing. The task is to find the missing elements. Note… Read More »

Given an array arr[] of strings containing the names of employees in a company. Assuming that the names are being entered in a system one… Read More »