# Tag Archives: binary-string

Given a binary string persons where ‘1’ and ‘0’ represent people entering and leaving a room respectively. The task is to find the Minimum and… Read More
Given a binary string S, the task is to make a binary string of size N from the given string S (don’t change the position… Read More
Given a binary string S of length N, consisting of 0’s and 1’s, the task is to find the minimum sum of the array of… Read More
Given a binary string S of length N, consisting of 0s and 1s. The task is to count the number of triplet (i, j, k)… Read More
Given a binary string str of size N, the task is to calculate the bitwise XOR of all substrings of str. Examples: Input: str =… Read More
Given a binary string S of length N, the task is to minimize the count of operations required to find a binary string T of… Read More
Given a binary string s of length N, the task is to find the lexicographically smallest string using infinite number of swaps between 0’s and… Read More
Given a binary array arr[] of size N and an integer K, the task is to find the highest index which can be reached in… Read More
Given a binary string str of size N containing 0 and 1 only, the task is to count all possible distinct binary strings when a… Read More
Given an A “1″s, B “10”s, and C “0”s, the task is to count of sum of “10” subsequences for each 1s in the string… Read More
Given a binary string S of length N. Distribute 0s and 1s of the string into K groups such that: Each group consists atleast a… Read More