# 461. Hamming distance

#### Question

The Hamming distance between two integers is the number of positions at which the corresponding bits are different.

Given two integers x and y, calculate the Hamming distance.

#### Pseudo code

- convert integers to binary strings
- get the biggest length of converted strings
- create padding to fill missing digits
- fill short string with padding to make two strings even in length, then convert to array
- compare each member and count the distance

#### Playground

See the Pen #461 Hamming distance by Cherry Wang (@chryw) on CodePen.