Skip to content

Tag Archives: binary-string

A binary string is a string that only has two characters, usually the numbers 0 and 1, and it represents a series of binary digits.… Read More
 Given a binary string str and an array of positive integers profit[]. The task is to find the maximum possible sum if we are allowed… Read More
Given a binary string S of length N, the task is to find the number of ways to select three indices such that if they… Read More
Given a value N, the task is to find the number of ways a binary string of size N can be formed such that at… Read More
You are given a binary string S of size N consisting of characters 0 and/or 1. You may remove several characters from the beginning or… Read More
Given a binary string S and an array arr[] each of size N, we can pick any element from the Array which is to the… Read More
Given a binary string S of even size that contains only 0s and 1s, the task is to find the minimum flips (that is 0… Read More
Given a binary string consisting of ‘0’ and ‘1’ only and an integer K, the task is to minimize the string as far as possible… Read More
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
A string is a sequence of characters, often used to represent text. In programming, strings are a common data type and are used for a… 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