回复:This definitely works, but uses too much memory. I

来源: 2009-03-04 08:01:07 [旧帖] [给我悄悄话] 本文已被阅读:

3 million words are about 30 million characters. That is 30MB. We need an array and target string. Therefore we triple the memory usage, which is 90MB. For modern computers, that is not a big deal.