由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - 问个几道结构设计题
相关主题
问个算法题一道JAVA coding question?
问几道L家的设计题一道电面题
g电面,新鲜面经总结下f家的几道经典设计题
征解几道large scale的数字题问一道题(6)
amazon 一道题L家电面面经,估计挂了
interview questionsA公司面挂了,发面经,攒RP
Ebay 三轮skype面筋(免onsite Offer)问个打印树的问题
ms onsite面经点评网站Y面经
相关话题的讨论汇总
话题: name话题: contents话题: query话题: urls话题: indexes
进入JobHunting版参与讨论
1 (共1页)
a**********2
发帖数: 340
1
1.一组用户信息,包括first name, last name,phone number等等,设计一个结构存
储这些信息,能够动态添加,并且能根据first name或者last name进行查找。
我就想到用两个multimap存储,不知道有什么好的思路
2.顺便问道老题
In our indexes, we have millions of URLs each of which has a link to some
page contents, that is, URL->contents. Now, suppose a user types a query
with wild cards *, which represent 0 or multiple occurrences of any
characters, how do you build the indexes such that such a type of query can
be executed efficiently by finding all corresponding URLs->contents
efficiently. For example, given a query http://www.*o*ve*ou.com. You need to find iloveyou.com, itveabcu.com, etc
k****n
发帖数: 369
2

这不就是传统数据库么。。。
数据放在一个静态数组或者list里面,用BTREE或者HASHMAP做name的index
can
老题就看经典好了,IR领域的经典题,看怎么做模糊检索
大概就是做cyclic suffix tree,或者bi/tri-gram的index什么的
但是为什么这个能match到itveabcu呢?最起码结尾应该是ou吧?

【在 a**********2 的大作中提到】
: 1.一组用户信息,包括first name, last name,phone number等等,设计一个结构存
: 储这些信息,能够动态添加,并且能根据first name或者last name进行查找。
: 我就想到用两个multimap存储,不知道有什么好的思路
: 2.顺便问道老题
: In our indexes, we have millions of URLs each of which has a link to some
: page contents, that is, URL->contents. Now, suppose a user types a query
: with wild cards *, which represent 0 or multiple occurrences of any
: characters, how do you build the indexes such that such a type of query can
: be executed efficiently by finding all corresponding URLs->contents
: efficiently. For example, given a query http://www.*o*ve*ou.com. You need to find iloveyou.com, itveabcu.com, etc

1 (共1页)
进入JobHunting版参与讨论
相关主题
点评网站Y面经amazon 一道题
Yelp面经+题目讨论interview questions
设计Tiny URLEbay 三轮skype面筋(免onsite Offer)
2SUM, unsorted, print all index including duplicates 能O(nlogn)解决么ms onsite面经
问个算法题一道JAVA coding question?
问几道L家的设计题一道电面题
g电面,新鲜面经总结下f家的几道经典设计题
征解几道large scale的数字题问一道题(6)
相关话题的讨论汇总
话题: name话题: contents话题: query话题: urls话题: indexes