浅见啊~~

来源: LiYouCai 2009-01-20 22:06:02 [] [博客] [旧帖] [给我悄悄话] 本文已被阅读: 次 (256 bytes)

首先这是个既实际又挑战的题,可用作google的面试考题。

个人浅见,不能用那些无序的collection types来存,应用sorted array来存储。(sort的时候,除了考虑字典顺序,可能还得按使用频率)

这样,提取时,就可用各种快速搜索算法了。

所有跟帖: 

兄台所见极是 -catcherintherye- 给 catcherintherye 发送悄悄话 (1195 bytes) () 01/20/2009 postreply 22:46:54

gotta be careful about the size of collection -澳洲老土- 给 澳洲老土 发送悄悄话 (208 bytes) () 01/21/2009 postreply 00:03:46

请您先登陆,再发跟帖!

发现Adblock插件

如要继续浏览
请支持本站 请务必在本站关闭/移除任何Adblock

关闭Adblock后 请点击

请参考如何关闭Adblock/Adblock plus

安装Adblock plus用户请点击浏览器图标
选择“Disable on www.wenxuecity.com”

安装Adblock用户请点击图标
选择“don't run on pages on this domain”