## Count pairs in array whose sum is divisible by K

Given an array A[] and positive integer K, the task is to count total number of pairs in the array whose sum is divisible by… Read More »

- Count pairs in array whose sum is divisible by K
- Count pairs in an array that hold i+j= arr[i]+arr[j]
- Count sub-arrays whose product is divisible by k
- Introduction to Merkle Tree
- Sum of elements whose square root is present in the array
- Count pairs of parentheses sequences such that parentheses are balanced
- Count of pairs of strings which differ in exactly one position
- Count all elements in the array which appears at least K times after their first occurrence
- Maximize the number of sum pairs which are divisible by K
- Number of subarrays having sum of the form k^m, m >= 0
- Number of pairs from the first N natural numbers whose sum is divisible by K
- Number of ways in which the substring in range [L, R] can be formed using characters out of the range
- Maximum count of pairs which generate the same sum
- Total distinct pairs of ugly numbers from two arrays
- Minimum cost to modify a string
- Count pairs with average present in the same array
- Total character pairs from two strings, with equal number of set bits in their ascii value
- Number of times the given string occurs in the array in the range [l, r]
- Print all the sum pairs which occur maximum number of times
- Check if a given number divides the sum of the factorials of its digits
- Sum of all odd frequency nodes of the Linked List
- Total distinct pairs from two arrays such that second number can be obtained by inverting bits of first
- Distinct pairs from given arrays (a[i], b[j]) such that (a[i] + b[j]) is a Fibonacci number
- Rearrange given string to maximize the occurrence of string t

Given an array A[] and positive integer K, the task is to count total number of pairs in the array whose sum is divisible by… Read More »

Given an array of N integers and an integer K. The task is to print the maximum number of pairs(a[i]+a[j]) possible which are divisible by… Read More »

Given an array arr[] of N distinct integers. The task is to find the sum of two array integers a[i] + a[j] which occurs maximum… Read More »

Given two strings s1 and s2. The task is to take one character from first string and one character from second string and check if… Read More »

Given an array arr[] of N integer elements and an integer K. The task is to count all distinct arr[i] such that arr[i] appears at… Read More »

Given N bracket sequences, the task is to find the number of pairs of bracket sequences by joining which can be obtained a balanced bracket… Read More »

Given an array of integers arr[], the task is to count all the pairs (arr[i], arr[j]) such that i + j = arr[i] + arr[j]… Read More »

Given an array arr[], the task is to find the sum of all those elements from the given array whose square root is present in… Read More »

Merkle tree also known as hash tree is a data structure used for data verification and synchronization. It is a tree data structure where each… Read More »

Given a string containing lowercase English alphabets. The task is to find the minimum number of characters needed to be removed so that the remaining… Read More »

Given an array A[] of integers. The task is to print all indices of this array such that after removing the ith element from the… Read More »

Given an array of integers and an integer . For every integer of the array a[i], the task is to calculate the count of numbers… Read More »

Given an array with N distinct elements. The task is to find the minimum number of elements to be changed in the array such that,… Read More »

Given an array. The task is to find the length of the longest subsequence in which all elements must have at least one digit in… Read More »

The hash_hmac_algos() function is an inbuilt function in PHP which is used to get the a list of registered hashing algorithms suitable for hash_hmac() function.… Read More »