Longest Substring of 1’s after removing one character
Given a binary string S of length N, the task is to find the longest substring consisting of ‘1’s only present in the string after… Read More »
Given a binary string S of length N, the task is to find the longest substring consisting of ‘1’s only present in the string after… Read More »
Given an integer N, the task is to partition the squares of first N( always a multiple of 8 ) natural numbers into two sets… Read More »
There are some colored rabbits in a forest. Given an array arr[] of size N, such that arr[i] denotes the number of rabbits having same… Read More »
Given an array, arr[] of size N, the task is to find the count of array indices such that removing an element from these indices… Read More »
Given an array arr[] of size N, the task is to find the longest non-empty subsequence from the given array whose sum is maximum. Examples:… Read More »
Given an array of strings arr[], consisting of strings made up of lowercase and uppercase letters, the task is to print all the strings from… Read More »
In the Byteland country, a string S is said to super ASCII string if and only if the count of each character in the string… Read More »
Given two strings S and T, where S represents the first lane in which vehicles move from left to right and T represents the second… Read More »
Given integers N, L and R, the task is to generate a Bitonic Sequence of length N from the integers in the range [L, R]… Read More »
Given two arrays of H[] and B[] consisting of N and M integers respectively, denoting the diameter of holes and balls respectively. M number of… Read More »
Given a string str, consisting of lowercase alphabets, the task is to find the shortest string which is not a subsequence of the given string.… Read More »
Given two arrays arr1[] and arr2[] of length M and N consisting of digits [0, 9] representing two numbers and an integer K(K ≤ M… Read More »
Given a string S and two positive integers X and Y, the task is to find the minimum number of operations required to obtain the… Read More »
Given an array arr[] consisting of N integers, the task is to find the maximum index K such that the product of subarrays {arr[0], arr[K]}… Read More »
Given a string S consisting of lowercase alphabets of size N, the task is to count all substrings which contains the most frequent character in… Read More »