##
Count minimum bits to flip such that XOR of A and B equal to C
February 22, 2017

Given a sequence of three binary sequences A, B and C of N bits. Count the minimum bits required to flip in A and B such that XOR of A and B is equal to C. For example:- Input: N = 3 A = 110 B = 101 C = 001 Output: 1 We only… Read More »