Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yeah, my JS hamming distance implementation is pretty miserable. I'm no bit wizard, but I thikn I can modify the SHA1 function (before it returns the value as a hex string) and XOR the 5 vars with the hex value that they gave us, and then count the set bits. Couldn't get it working last night though so I switched over to this


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: