Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for [old] The Hamming Distance by oba-ba
function hammingDistance(n, m) {
return [...(n ^ m).toString(2)].filter(bit => bit === '1').length;
}
Oct. 9, 2019