## Change K elements so that (a1^2 + a2^2 + …+ aN^2 ) <= (a1 + a2 +…+ aN) becomes true

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 »

- Find the first maximum length even word from a string
- Minimum elements to be removed such that sum of adjacent elements is always even
- Count array elements that divide the sum of all other elements
- Replace array elements by sum of next two consecutive elements
- Array element with minimum sum of absolute differences
- Maximum subarray sum in array formed by repeating the given array k times
- Minimum number of given operations required to convert a string to another string
- Minimum elements to be removed such that sum of adjacent elements is always odd
- Minimum number of operations on an array to make all elements 0
- Group consecutive characters of same type in a string
- Maximum length subarray with difference between adjacent elements as either 0 or 1
- Minimize sum of adjacent difference with removal of one element from array
- Check if a binary string contains consecutive same or not
- Minimum removals to make array sum odd
- Move all zeros to start and ones to end in an Array of random integers
- Longest Sub-array with maximum average value
- Minimum replacements to make adjacent characters unequal in a ternary string
- Minimum cost to make two strings same
- Character whose frequency is equal to the sum of frequencies of other characters of the given string
- Maximum occurrence of prefix in the Array
- Minimum index i such that all the elements from index i to given index are equal
- Pick maximum sum M elements such that contiguous repetitions do not exceed K
- Maximum number of continuous Automorphic numbers
- Print direction of moves such that you stay within the [-k, +k] boundary

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 »