logoalt Hacker News

matjayesterday at 12:42 PM1 replyview on HN

Encode every 0 as 10 - then decode every 10 back to 0. Or more efficiently, the first 0 as 10, then decode the the first 10 as 0.


Replies

rbanffyyesterday at 9:39 PM

Add 10 to every digit, then multiply it by 10. Concatenate the numbers into the integer you will store.

I love to play absurd games.