海那邊的姑娘

我是一個簡單的女生,一個喜歡大海的女生. 如果我們是知己,也許我們可以一起去海邊走走,看看,聽聽海的聲音.
個人資料
正文

如果真的是interview問題,這個題目真的是tricky

(2006-07-12 06:14:06) 下一個
1。 Given a file of URLs, how to find the top 10 most popular domains? If the file is really large (containing tens of millions of URLs), and we don't want to know the exact top 10 most popular domains, what is the quickest way to find the approximate top 10 most popular domains?

domian name和url是不一樣de啊。這個問題不像個簡單的統計問題,首先要找出最快的從url中提取domain name的辦法,然後.....

2。How to efficiently store a billion URLs?

url本身就是由domain name 加上path組成的, 所以....


  
[ 打印 ]
閱讀 ()評論 (1)
評論
目前還沒有任何評論
登錄後才可評論.