## Number of Binary Strings of length N with K adjacent Set Bits

Given and . The task is to find the number of binary strings of length n out of 2n such that they satisfy f(bit string)… Read More »

- Maximum power of jump required to reach the end of string
- Maximum contiguous 1 possible in a binary string after k rotations
- Minimum number of 1's to be replaced in a binary array
- Number of steps required to convert a binary number to one
- Divide binary array into three equal parts with same value
- Length of longest consecutive ones by at most one swap in a Binary String
- Count of cyclic permutations having XOR with other binary string as 0
- Find Index of 0 to be replaced with 1 to get longest continuous sequence of 1s in a binary array | Set-2
- Minimum swaps required to make a binary string alternating
- Minimum swaps required to convert one binary string to another
- Number of unique permutations starting with 1 of a Binary String
- Construct a binary string following the given constraints
- Check if it is possible to rearrange a binary string with alternate 0s and 1s
- 2's compliment for a givin string using XOR
- Find Bit whose minimum sequence flips makes all bits same
- Check If every group of a's is followed by a group of b's of same length
- Lucky alive person in a circle | Set - 2
- Find the winner of a game where scores are given as a binary string
- Number of Binary Strings of length N with K adjacent Set Bits
- Minimum steps to convert one binary string to other only using negation
- Python | Check if a given string is binary string or not
- Minimum steps to remove substring 010 from a binary string
- Arrange a binary string to get maximum value within a range of indices
- Remove one bit from a binary number to get maximum value
- Maximum Consecutive Zeroes in Concatenated Binary String
- Final string after performing given operations
- Check if a string has m consecutive 1's or 0's
- Check whether a binary string can be formed by concatenating given N numbers sequentially

Given and . The task is to find the number of binary strings of length n out of 2n such that they satisfy f(bit string)… Read More »

Given three integers A, B and X. The task is to construct a binary string str which has exactly A number of 0’s and B… 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 a Binary String of length . It is allowed to do at most one swap between any 0 and 1. The task is to… Read More »

Given a binary string consisting only of 1’s and 0’s. Find the bit (output is either 1 or 0)whose the minimum number of contiguous sequence… Read More »

Given a string str containing only characters x and y, the task is to perform the following operations while possible: Find an index such that… Read More »

Given a binary number, the task is to remove exactly one bit from it such that, after it’s removal, the resultant binary number is greatest… Read More »

Given two binary strings A and B, the task is to convert A to B by choosing any sub-string of A and negating it (replace… Read More »

Given two binary strings and . Let be set of all the cyclic permutations of string . The task is to find how many strings… Read More »

Given a binary array arr[] of zero’s and one’s only. The task is to find the minimum number of one’s to be changed to zero… Read More »

Given a binary string, the task is to count the minimum steps to remove substring “010” from this binary string. Examples: Input: binary_string = “0101010”… Read More »

Given a binary string of length at-least two. We need to check if it is possible to rearrange a binary string such that there alternate… Read More »

Given an array A of length n such that it contains only ‘0s’ and ‘1s’. The task is to divide the array into THREE different… Read More »

You are given a binary string str of length n. Suppose you create another string of size n * k by concatenating k copies of… Read More »

Given a sequence of ‘n’ numbers (without leading zeros), the task is to find whether it is possible to create a binary string by concatenating… Read More »