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

I was asked this in an interview. I was a bit pissed


Doesn't sound too bad; a basic property of XOR is that two of them cancel out, so y ⊕ x ⊕ x is just y.




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

Search: