P*******b 发帖数: 1001 | 1 1. 很长的log file记录了用户访问amazon.com的过程,两列分别为 userID 和
pageName.
log从上倒下按照点击发生的时间顺序。找出最popular的3连击。
eg:
zhang welcome
Li Hello
Wang welcome
Li books
Wang Hello
zhang books
Li shopping cart
Li checkout
zhang shopping cart
Wang camera
zhang checkout
最popular的3 combo是books -> shopping cart -> checkout | c***2 发帖数: 838 | 2 bucket list, use page as key.
the num of pages are quite limited, just count each and find the top 3. | P*******b 发帖数: 1001 | 3 感觉不是题目想要的吧。题目想要的三连击应该是发生在同一个人身上?
【在 c***2 的大作中提到】 : bucket list, use page as key. : the num of pages are quite limited, just count each and find the top 3.
| s******5 发帖数: 673 | 4 Hashtable?
Use pagename/url as the key, use the click counts as value? |
|