不如直接用文件指针
或者不用list或栈,直接读文件,比较,然后写文件
所有跟帖:
• 回复:或者不用list或栈,直接读文件,比较,然后写文件 -hello2- ♂ (69 bytes) () 05/09/2009 postreply 17:01:02
• 如果排序的话,那就太简单了,这个题是open的,是考实际问题解决 -feicen- ♀ (83 bytes) () 05/09/2009 postreply 17:04:40
• 但我还是觉得是考排序:) -戏雨飞鹰- ♀ (0 bytes) () 05/09/2009 postreply 17:34:54
• meant to follow up with feicen. -戏雨飞鹰- ♀ (0 bytes) () 05/09/2009 postreply 17:36:42
• 考排序的话就不会说给的两个原文件是排好的了 -feicen- ♀ (199 bytes) () 05/09/2009 postreply 17:48:13
• hmm. makes sense. thanks. -戏雨飞鹰- ♀ (0 bytes) () 05/09/2009 postreply 17:59:21
• 回复:考排序的话就不会说给的两个原文件是排好的了 -hello2- ♂ (99 bytes) () 05/09/2009 postreply 18:38:17
• 无论如何,我认为feicen给的算法是performance最好的:) -戏雨飞鹰- ♀ (0 bytes) () 05/10/2009 postreply 11:40:23
• 系统page时会不停移动数据块组合成大块内存---超级慢 -what124- ♂ (305 bytes) () 05/11/2009 postreply 05:26:51
• 同意你对算法的分析。跟feicent说的一致。关于女程序员的说法, -戏雨飞鹰- ♀ (340 bytes) () 05/11/2009 postreply 07:01:35