Skip to content

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
Given a head and a tail of a doubly linked list containing 0s and 1s, the task is to sort the Doubly linked list without… Read More
Given N sized binary array A[] containing all 0’s initially. The task is to find the final count of 1’s after flipping the bits at… Read More
Given a binary string  str, the task is to determine if string str can be converted into a palindrome in K moves. In one move… Read More
Given a binary sequence of 1‘s and 0‘s. Our task is to remove all 1s from the sequence in minimum cost by below operations. Remove… Read More

Start Your Coding Journey Now!