Given a binary string S of size N and a number K, the task is to find if all the ‘0’s can be changed into… Read More

# Tag Archives: binary-string

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

Given a binary string S of size N, the task is to check if the binary string S can be sorted in decreasing order by… Read More

Given a binary string S, the task is to print all distinct decimal numbers that can be obtained by generating all permutations of the binary… Read More