首先这是个既实际又挑战的题,可用作google的面试考题。
个人浅见,不能用那些无序的collection types来存,应用sorted array来存储。(sort的时候,除了考虑字典顺序,可能还得按使用频率)
这样,提取时,就可用各种快速搜索算法了。
•
兄台所见极是
-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
WENXUECITY.COM does not represent or guarantee the truthfulness, accuracy, or reliability of any of communications posted by other users.
Copyright ©1998-2025 wenxuecity.com All rights reserved. Privacy Statement & Terms of Use & User Privacy Protection Policy