Question discussion

What is the Hamming distance between 1101 and 110 ?

127380Medium 1 reply 1,104 views

Discussion 1

0
CCommunity
Firstly take the xor of the two string

1101 and 0110

That is 1011

Then count the number of 1's in resultant string

Here in the result 3 1's are present.

So hamming distance is 3.