## Generate string with Hamming Distance as half of the hamming distance between strings A and B

Given two Binary string A and B of length N, the task is to find the Binary string whose Hamming Distance to strings A and… Read More »

Given two Binary string A and B of length N, the task is to find the Binary string whose Hamming Distance to strings A and… Read More »

Given a binary string str of 0’s and 1’s only. The task is to count the total numbers of substrings of string str such that… Read More »

Given a binary string str of length N and an integer K, the task is to find the minimum number of steps required to move… Read More »

Given an integer N, the task is to count the number of binary strings possible such that there is no substring of length ≥ 3… Read More »

Given two binary strings of equal length, the task is to find the minimum number of swaps to make them equal. Swapping between two characters… Read More »

Given a binary string, the task is to find whether all the digits of the string can be made equal i.e either 0 or 1… Read More »

Given N binary strings b1, b2, b3…. bn. The task is to find the maximum number of binary strings that you can make palindromic by… Read More »

Given two special characters, the first character can be represented by one bit which is 0 and the second character can be represented by two… Read More »

Given a binary string S of length N, the task is to find the length of the longest sub-sequence in it which is divisible by… Read More »

Given a binary string S of length N, the task is to find the number of sub-sequences of non-zero length which are divisible by 3.… Read More »

Given a binary string S of length N and an integer K, the task is to find the minimum number of adjacent swaps required to… Read More »

Given two integers M and N the task is to find the number formed by concatenating the binary equivalents of M and N i.e. M… Read More »

Given a binary string str of length N, the task is to find the count of substrings of str which are divisible by 2. Leading… Read More »

Given two binary string of unequal lengths A and B, the task is to print the binary string which is the XOR of A and… Read More »

Given a binary string str of length N, the task is to find the longest sub-string divisible by 2. If no such sub-string exists then… Read More »