## Split the binary string into substrings with equal number of 0s and 1s

Given a binary string str of length N, the task is to find the maximum count of substrings str can be divided into such that… Read More »

## Find Nth even length palindromic number formed using digits X and Y

Given an integer N, the task is to find the Nth even palindromic number of even length and only comprising of the digits X and… Read More »

## Number of ways to split a binary number such that every part is divisible by 2

Given a binary string S, the task is to find the number of ways to split it into parts such that every part is divisible… Read More »

## Maximum number of splits of a binary number

Given a binary string S, the task is to find the maximum number of parts that you can split it into such that every part… Read More »

## Modulo of a large Binary String

Given a large binary string str and an integer K, the task is to find the value of str % K. Examples: Input: str =… Read More »

## Count number of binary strings such that there is no substring of length greater than or equal to 3 with all 1’s

Given an integer N, the task is to count the number of binary strings possible of length N such that they don’t contain “111” as… Read More »

## Minimum given operations required to convert a given binary string to all 1’s

Given a binary number as a string str of length L. The task is to find the minimum number of operations needed so that the… Read More »

## Minimum operations required to convert a binary string to all 0s or all 1s

Given a binary string str, the task is to find the minimum number of operations required to make all the characters of the string same… Read More »

## Minimum number of Binary strings to represent a Number

Given a number N. The task is to find the minimum number of binary strings required to represent the given number as the sum of… Read More »

## Longest sub string of 0’s in a binary string which is repeated K times

Given binary string S of size N and a number K. The task is to find the Longest sub string of 0’s in the string… Read More »

## Count of non-overlapping sub-strings “101” and “010” in the given binary string

Given a binary string str, the task is to find the count of non-overlapping sub-strings of either the form “010” or “101”. Examples: Input: str… Read More »

## Optimally accommodate 0s and 1s from a Binary String into K buckets

Given a binary string S, consisting of 0’s and 1’s. You have to accommodate the 0’s and 1’s into the K buckets in such a… Read More »

## Check whether str1 can be converted to str2 with the given operations

Given two binary strings str1 and str2. The task is to check whether it is possible to convert str1 to str2 by applying the below… Read More »

## Find if it is possible to make a binary string which contanins given number of “0”, “1” , “01” and “10” as sub sequences

Given four integers l, m, x and y. The task is to check whether it is possible to make a binary string consisting of l… Read More »

## Rearrange given string to maximize the occurrence of string t

Given two binary strings s and t. The task is to rearrange the string s in such a way that the occurrence of string t… Read More »