## Students with maximum average score of three subjects

Given a file containing data of student name and marks scored by him/her in 3 subjects. The task is to find the list of students… Read More »

- Longest subarray with elements having equal modulo K
- Smallest subarray such that all elements are greater than K
- Minimum number of elements to be removed so that pairwise consecutive elements are same
- Index with Minimum sum of prefix and suffix sums in an Array
- Count pairs with Bitwise XOR as EVEN number
- Replace every element with the greatest element on its left side
- Absolute Difference of even and odd indexed elements in an Array
- Find the only different element in an array
- 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
- Minimum range increment operations to Sort an array
- Replace every element with the smallest element on its left side
- Check whether (i,j) exists such that arr[i] != arr[j] and arr[arr[i]] is equal to arr[arr[j]]
- Find a range that covers all the elements of given N ranges
- Element equal to the sum of all the remaining elements
- Students with maximum average score of three subjects
- 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

Given a file containing data of student name and marks scored by him/her in 3 subjects. The task is to find the list of students… Read More »

Given an array of integers where all elements are same except one element, find the only different element in the array. It may be assumed… Read More »

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 »