Skip to content

Tag Archives: binary-string

Given a binary string S of size N, the task is to find the maximum number of operations that can be performed on S, by… Read More
Given a binary string S of size N, the task is to find the number of groups of 1s only in the string S. Examples:… Read More
Given a binary string S consisting of N characters, the task is to print the minimum number of operations required to remove all the characters… Read More
Given a binary string S of size N, the task is to find the minimum non-negative integer which is not a subsequence of the given… Read More
Given a binary string of size N, the task is to count the number of alternating substrings that are present in the string S. Examples: … Read More
Given a binary string S, and two integers A, which denotes the cost of reversing a substring, and B, which denotes the cost of flipping… Read More
Given a binary string, S of size N, the task is to check if it is possible to partition the string into disjoint subsequences equal… Read More
Given a Binary string, the task is to find the largest Prime Number possible by the decimal representation of a subsequence of the given binary… Read More
Given a binary string S of length N, the task is to find the smallest string possible by removing all occurrences of substrings “01” and… Read More
Given two binary strings A and B of length N, the task is to convert the string A to B by either flipping any character… Read More
Given a binary string S of size N(where N is even), the task is to find the minimum cost of making the given binary string… Read More
Given an array arr[] consisting of N floating-point numbers, the task is to print the decimal representation of the binary array constructed from the absolute… Read More
Given two binary strings A and B of length N, the task is to convert the string from A to string B by repeatedly flipping… Read More
Given a binary string S of size N, the task is to find the length of the longest non-increasing subsequence in the given string S.… Read More