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

回答: 回複:請教一ALGORITHM問題sub1012009-03-04 06:23:58

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.

請您先登陸,再發跟帖!