Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
make3
on Oct 17, 2018
|
parent
|
context
|
favorite
| on:
Ask HN: What's your favorite elegant/beautiful alg...
I was asked this in an interview. I was a bit pissed
bhl
on Oct 17, 2018
[–]
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: