func hammingDistance(x int, y int) (cnt int) { for diff := x ^ y; diff != 0; diff >>= 1 { if diff&1 == 1 { cnt++ } } return }