## Find the element whose multiplication with -1 makes array sum 0

Given an array of N integers. The task is to find the smallest index of an element such that when multiplied by -1 the sum… Read More »

- Largest palindromic number in an array
- Longest subarray with elements having equal modulo K
- Count pairs with Bitwise XOR as EVEN number
- Smallest subarray such that all elements are greater than K
- Maximize the difference between two subsets of a set with negatives
- Minimum number of elements to be removed so that pairwise consecutive elements are same
- Element equal to the sum of all the remaining elements
- Remove all continuous occurrences of 'a' and all occurrences of 'b'
- Count number of pairs (i, j) such that arr[i] * arr[j] > arr[i] + arr[j]
- Index with Minimum sum of prefix and suffix sums in an Array
- Maximum value of arr[i] % arr[j] for a given array
- Replace every element with the greatest element on its left side
- Absolute Difference of even and odd indexed elements in an Array
- Find the element whose multiplication with -1 makes array sum 0
- Find the only different element in an array
- Length of the longest substring with consecutive characters
- Replace every element with the smallest element on its left side
- Check If every group of a's is followed by a group of b's of same length
- Count Subarrays with Consecutive elements differing by 1
- Minimum score after flipping the cards
- Generate lexicographically smallest string of 0, 1 and 2 with adjacent swaps allowed
- Students with maximum average score of three subjects
- Minimum range increment operations to Sort an array
- Number of ways to remove a sub-string from S such that all remaining characters are same
- Find a range that covers all the elements of given N ranges
- Check whether (i,j) exists such that arr[i] != arr[j] and arr[arr[i]] is equal to arr[arr[j]]
- Find if there is any subset of size K with 0 sum in an array of -1 and +1
- Change K elements so that (a1^2 + a2^2 + …+ aN^2 ) <= (a1 + a2 +…+ aN) becomes true
- Minimum moves to reach from i to j in a cyclic string
- Cost to make a string Panagram

Given an array of N integers. The task is to find the smallest index of an element such that when multiplied by -1 the sum… Read More »

Given a string str, the task is to check whether every group of consecutive a’s is followed by a group of consecutive b’s of same… Read More »

Given an array containing N elements. It is allowed to do the below move any number of times on the array: Choose any L and… Read More »

Given N ranges containing L and R. The task is to check or find the index(0-based) of the range which covers all the other given… Read More »

Given an array of N integers, the task is to find the number of pairs (i, j) such that A[i] ^ A[j] is even. Examples:… Read More »

Given an integer K and an array arr containing only 1 and -1, the task is to find if there is any subset of size… Read More »

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 »