回複: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.