## Element equal to the sum of all the remaining elements

Given an array of N positive elements. The task is to find an element which is equal to the sum of all elements of array… Read More »

- Largest palindromic number in an array
- Count array elements that divide the sum of all other elements
- Maximum subarray sum in array formed by repeating the given array k times
- Longest subarray with elements having equal modulo K
- Array element with minimum sum of absolute differences
- Count pairs with Bitwise XOR as EVEN number
- Minimum elements to be removed such that sum of adjacent elements is always odd
- Smallest subarray such that all elements are greater than K
- Length of the longest substring with consecutive characters
- Maximum value of arr[i] % arr[j] for a given array
- Minimum number of given operations required to convert a string to another string
- Minimum number of elements to be removed so that pairwise consecutive elements are same
- Remove all continuous occurrences of 'a' and all occurrences of 'b'
- Replace every element with the greatest element on its left side
- Students with maximum average score of three subjects
- Maximize the difference between two subsets of a set with negatives
- Index with Minimum sum of prefix and suffix sums in an Array
- Minimum number of operations on an array to make all elements 0
- Element equal to the sum of all the remaining elements
- Count number of pairs (i, j) such that arr[i] * arr[j] > arr[i] + arr[j]
- Absolute Difference of even and odd indexed elements in an Array
- Minimum removals to make array sum odd
- Count Subarrays with Consecutive elements differing by 1
- Find the only different element in an array
- Replace every element with the smallest element on its left side
- Check if a binary string contains consecutive same or not
- Minimum replacements to make adjacent characters unequal in a ternary string
- Generate lexicographically smallest string of 0, 1 and 2 with adjacent swaps allowed
- Find the element whose multiplication with -1 makes array sum 0
- Check If every group of a's is followed by a group of b's of same length

Given an array of N positive elements. The task is to find an element which is equal to the sum of all elements of array… Read More »

Given an array Arr of size N. The task is to tell whether it is possible to change at most K elements of this sequence… Read More »

Given an array of integers arr, the task is to find the running absolute difference of elements at even and odd index positions separately. Note:… Read More »

Given an array of N integers and a number K, the task is to find the length of the smallest subarray in which all the… Read More »

Given an Array of integers. The task is to find the index in the array at which the value of prefixSum(i) + suffixSum(i) is minimum.… Read More »

Given a string str. The task is to count the minimum number of elements to be removed so that pairwise consecutive elements are same Examples:… Read More »

Given an array A[]. The task is to determine if it is possible to choose two indices ‘i’ and ‘j’ such that the below conditions… Read More »

Given an array of integers, the task is to replace every element with the smallest element on its left side. Note: Replace the first element… Read More »

Given an integer K and an array arr of integer elements, the task is to print the length of the longest sub-array such that each… Read More »

Given an array of integers, the task is to replace every element with the greatest element on its left side. Note: Replace the first element… Read More »

Given an integer k and an array arr[], the task is to repeat the following operation exactly k times: Find the minimum non-zero element in… Read More »