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

请您先登陆,再发跟帖!