Skip to content

Tag Archives: binary-string

Given a binary string S of size N, the task is to find the minimum number of removal required either from the start or end… Read More
Given a binary string S of size N and an integer K, the task is to divide S into K disjoint subsequences(empty subsequences are also… Read More
What is String? Strings are considered a data type in general and are typically represented as arrays of bytes (or words) that store a sequence… Read More
Given two integers M and N the task is to construct a binary palindromic string consisting of M occurrences of 0s and N occurrences of… Read More
Given a string S of size M consisting of only zeroes (and hence representing the integer 0). Also, given an array A[] of size N… Read More
Given an integer N (N > 2), the task is to generate a binary string of size N that consists of equal numbers of “10”… Read More
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

Start Your Coding Journey Now!