## Maximum contiguous 1 possible in a binary string after k rotations

Given a binary string, you can rotate any substring of this string. For Example, let string be denoted by s. Let the first element of… Read More »

Given a binary string, you can rotate any substring of this string. For Example, let string be denoted by s. Let the first element of… Read More »

Given a binary string composed of 0’s and 1’s. The task is to find the number of unique permutation of the string which starts with… Read More »

Given a binary string str, the task is to print the numbers of steps required to convert it to one by the following operations: If… Read More »

Given a binary string, task is to convert this string in to two’s compliment with the help of XOR operator. Examples: Input : 00000101 Output… Read More »

Given a string str. The task is to check whether it is a binary string or not. Examples: Input: str = “01010101010” Output: Yes Input:… Read More »

Given a string consisting of 1 and 0, the task is to find out the maximum power of jump required to reach the end of… Read More »

Given a binary string representing the scores of a Volleyball match. The task is to find the winner of the match according to below conditions:… Read More »

Given an array of 0s and 1s, find the position of 0 to be replaced with 1 to get longest continuous sequence of 1s. Expected… Read More »

Given a binary string and a number m, the task is to check if the string has m consecutive 1’s or 0’s Examples: Input :… Read More »

Given a binary string and k, to check whether it’s contains all permutations of length k or not. Examples: Input : Binary string 11001 k… Read More »

Given n binary strings, return their sum (also a binary string). Examples: Input: arr[] = [“11”, “1”] Output: “100” Input : arr[] = [“1”, “10”,… Read More »

Given a Binary Circular Array of size N elements and two positive integers x and y indicating the indices in the circular array. The task… Read More »

Given an array arr containing elements from [1…to n]. Each element appears exactly once in the array arr. Given an string str of length n-1.… Read More »

We are given an integer N. We need to count the total number of such binary strings of length N such that the number of… Read More »

There are n student groups at the school. On each day in school, there are m time slots. A student group may or may not… Read More »