Hacker News new | ask | show | jobs
by billsimms 2185 days ago
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.