The Hamming Distance

The Hamming Distance

Odległość Hamminga między dwiema binarnymi liczbami całkowitymi to liczba pozycji bitowych, które różnią się między sobą (read more about the Hamming distance on Wikipedia). Na przykład:

    117 = 0 1 1 1 0 1 0 1
     17 = 0 0 0 1 0 0 0 1
      H = 0+1+1+0+0+1+0+0 = 3

Otrzymują...

You should be an authorized user in order to see the full description and start solving this mission.
45