Become a premier member today to gain access to exclusive member benefits! Just $5.00 to join FOR LIFE!
In information theory, the Hamming distance between two strings of equal length is the number of positions at which the corresponding symbols are different.
Find the sum of all hamming distances between each pair of numbers (0,1), (1,2), (2,3) ... (9999999, 10000000) IN HEXADECIMAL FORM.
It may be needed to pad a "0" at the start of a number to get a string of equal length. See below:
f - 15 in hexadecimal 10 - 16 in hexadecimal Now, pad a leading 0 to the first number: 0f 10
The total hamming distance is 2 since they differ in all 2 places.
**Register or login to submit the answer & earn 25 rewards points!(or 50 if you're a premium member)!**