1 comment

[ 3.8 ms ] story [ 84.3 ms ] thread
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.