Interleave array in constant space

后端 未结 6 1018
生来不讨喜
生来不讨喜 2020-12-05 14:53

I ran across the following sample job interview question. How can I solve it?

Suppose we have an array a1, a2,... , an, b1, b2, ..., bn.

The goal is to chan

6条回答
  •  一整个雨季
    2020-12-05 15:08

    This problem is not as trivial as people make out to be. Homework? LOL.

    The following link has a solution: http://arxiv.org/abs/0805.1598

提交回复
热议问题