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

I used this trick in a sorting pancakes contest. Flipping a list of pancakes required only one XOR, whatever the size. Very nice trick.


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

Search: