## Minimum number of given operations required to convert a string to another string

Given two strings S and T of equal length. Both strings contain only the characters ‘0’ and ‘1’. The task is to find the minimum… Read More »

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

Given two strings S and T of equal length. Both strings contain only the characters ‘0’ and ‘1’. The task is to find the minimum… Read More »

Given an array of N integers. The task is to eliminate the minimum number of elements such that in the resulting array the sum of… Read More »

Given an array arr[] of N integers and an integer cost, the task is to calculate the cost of making all the elements of the… Read More »

Given a binary string str consisting of characters ‘0’ and ‘1’. The task is to find whether the string is valid or not. A string… Read More »

Given an integer k and an integer array arr[] of n elements, the task is to find the largest sub-array sum in the modified array… Read More »

Given a string of ‘0’, ‘1’ and ‘2’. The task is to find the minimum number of replacements such that the adjacent characters are not… Read More »

Given an array arr[] of N integers, the task is to find an element x from the array such that |arr[0] – x| + |arr[1]… Read More »

Given a string str containing only characters 0, 1 and 2, you can swap any two adjacent (consecutive) characters 0 and 1 or any two… Read More »

Given a string str of lowercase alphabets, the task is to find the length of the longest sub-string of characters in alphabetical order i.e. string… Read More »

Given a cyclic string str and two integers i and j, the task is to count the minimum number of steps required to move from… Read More »

Given an array arr[], the task is to find the maximum value of arr[i] % arr[j] for all possible pairs. Examples: Input: arr[] = {… Read More »

Given an array arr[] of non-negative integers, the task is to count pairs of indices (i, j such that arr[i] * arr[j] > arr[i] +… Read More »

Given a string str consisting only of lowercase English alphabets, the task is to count the number of ways to remove exactly one sub-string from… Read More »

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 »