Re:How to encode two integers into a single integer
by billsimms on Friday June 26, 2020 @08:13PM
(#23658424)
Alternate the digits, or the bits, of the two numbers and prepend 0's onto the shorter number if needed. Accomplishes this in 2n digits or bits instead of 2^n.
[ Parent
| on HN ]
There are no comments on this comment yet.