回复:回复:回复:一道程序题

来源: 2009-07-24 16:24:36 [博客] [旧帖] [给我悄悄话] 本文已被阅读:

The algorithm in my mind would terminate. However, I am not sure about the complexity.

I will give it more thoughts when I get time.

Nice problem!