浅见啊~~


首先这是个既实际又挑战的题,可用作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

请您先登陆,再发跟帖!