## Cost to make a string Panagram

Given an array arr[] containing the cost of adding each alphabet from (a – z) and a string str which may or may noyt be… 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
- Longest Sub-array with maximum average value
- Move all zeros to start and ones to end in an Array of random integers
- 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[] containing the cost of adding each alphabet from (a – z) and a string str which may or may noyt be… Read More »

Given an array arr[] of N integers. The task is to count the total number of subarrays of the given array such that difference between… Read More »

Given an of integers of size N. The task is to separate these integers into two groups g1 and g2 such that (sum of elements… Read More »

Given N cards having positive integers printed on the front and the back of each card (possibly different). Any number of cards can be flipped,… Read More »

Given an array of non-negative integers arr[]. The task is to find the largest number in the array which is palindrome. If no such number… Read More »

Given a string str, the task is to remove all the continuous occurrences of a and all occurrences of b and print the resultant string.… Read More »

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 »