1 comment

[ 2.5 ms ] story [ 11.7 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.