Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Ferrotin
on Nov 25, 2022
|
parent
|
context
|
favorite
| on:
Making all your integers positive with zigzag enco...
Wouldn’t they use a plain bitmask instead, the lsb indicating negation, with 3 being the negation of 2? That’s zigzag encoding with a negative zero.
k0k0r0
on Nov 25, 2022
[–]
If I understand you correctly, then that exactly what I am talking about. You might see this as bitmask. That's correct.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: