## Count of quadruplets with given Sum | Set 2

Given four arrays containing integer elements and an integer sum, the task is to count the quadruplets such that each element is chosen from a… Read More »

- Remove duplicates from unsorted array
- Design a Hit Counter
- Count distinct elements in an array
- Sum of all odd frequency elements in an array
- Sort the array of strings according to alphabetical order defined by another string
- Print all pairs in an unsorted array with equal sum
- Check if it is possible to reach a number by making jumps of two given length
- Count numbers in range such that digits in it and it's product with q are unequal
- Number of pairs whose sum is a power of 2
- Count distinct substrings that contain some characters at most k times
- Count the number of vowels occurring in all the substrings of given string
- k-th missing element in an unsorted array
- Choose atleast two elements from array such that their GCD is 1 and cost is minimum
- Maximum length substring with highest frequency in a string
- Count occurrences of a string that can be constructed from another given string
- Number of unique pairs in an array
- Replace duplicates with greater than previous duplicate value
- Count of words that are present in all the given sentences
- Find length of longest Fibonacci like subsequence
- Maximum possible time that can be formed from four digits
- Replace repeating elements with greater that greatest values
- Find array elements with frequencies in range [l , r]
- Maximum length of the sub-array whose first and last elements are same
- Find the element having different frequency than other array elements
- Minimum length substring with exactly K distinct characters
- Count pairs in an array that hold i+j= arr[i]+arr[j]
- Check if a pair with given product exists in Linked list
- Map elements of an array to elements of another array
- Reduce the string by removing K consecutive identical characters
- Largest element in the array that is repeated exactly k times

Given four arrays containing integer elements and an integer sum, the task is to count the quadruplets such that each element is chosen from a… 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 »

Given two unsorted arrays arr1[] and arr2[], the task is to find the sum of elements of arr1[] such that number of elements less than… Read More »

Given two arrays x[] and y[] where x[i] represents the x coordinate and y[i] represents the corresponding y coordinate of a 2-D point, the task… Read More »

Given an array of N elements. The task is to split the elements into two arrays say a1[] and a2[] such that one contains strictly… Read More »

Given three arrays a[], b[] and c[] of N elements representing the three sides of N triangles. The task is to find the number of… Read More »

Given a permutation P (P1, P2, P3, … Pn) of first n natural numbers. Find the minimum number of operations to convert it into an… Read More »

Given a person who is at position current_pos and a binary string path which is the moves the person took, if path[i] = ‘0’ then… Read More »

Given an array arr[] of strings of equal lengths. The task is to calculate the total number of pairs of strings which differ in exactly… Read More »

Given an array arr[] containing only prime numbers, the task is to check if the product of the array elements is a perfect square or… Read More »

Given a string S and a range [L, R]. The task is to find the number of ways in which the sub-string in the range… Read More »

Given an array arr[] of N elements (0 ≤ arr[i] ≤ 1000). The task is to find the maximum length of the sub-array that contains… Read More »

Given a binary tree, the task is to print the sum of nodes in bottom view of the given Binary Tree. Bottom view of a… Read More »

Given two arrays of N integers. Consider an array C, where the i-th integer will be d*a[i] + b[i] where d is any arbitrary real… Read More »