Hacker News new | past | comments | ask | show | jobs | submit login

You might also use a basis of negative-two and use two bits to represent {-2, -1, 0, 1}.

Negative bases are fun. See https://en.wikipedia.org/wiki/Negative_base




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

Search: