由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - F design
相关主题
好几天没看见新题了计算机专业刚毕业,找工作好迷茫
怎么设计电话本的通配查找跟风deepthroat说说一件老中改名碰到的事
请帮忙作个SQL的题目TripAdvisor 内推
Emergency about the Error on my EAD card脸家 System design 新题, 求指点
求教sql 查询语句问题,谢谢!unicorn内推(湾区)
阿三好像没有那么差啊工作场合被直呼lastname,是不是对方对自己很不礼貌 (转载)
提供TURN家的Refer去租房如何查证对方确实是房东?
Bloomberg面试(已悲剧),顺带拜求个内推least common ancestor的疑惑
相关话题的讨论汇总
话题: firstname话题: lastname话题: design话题: search话题: value
进入JobHunting版参与讨论
1 (共1页)
f********a
发帖数: 165
1
类似于这题:
How would you implement live search for people's names (only firstname and
lastname, or lastname and firstname) like in facebook's search, retreiving
the top 5, knowing a value between 0 and 1 for every one of them. If you are
close friends then the value will be bigger. You should output the first 5
values in descending order.
想到trie。找前5怎么在tire上面加数据结构?
x*****0
发帖数: 452
2
mark
A*H
发帖数: 127
3
弄一个priority queue with size of 5, 遍历trie的时候找到match的就丢到queue里
面,

are
5

【在 f********a 的大作中提到】
: 类似于这题:
: How would you implement live search for people's names (only firstname and
: lastname, or lastname and firstname) like in facebook's search, retreiving
: the top 5, knowing a value between 0 and 1 for every one of them. If you are
: close friends then the value will be bigger. You should output the first 5
: values in descending order.
: 想到trie。找前5怎么在tire上面加数据结构?

1 (共1页)
进入JobHunting版参与讨论
相关主题
least common ancestor的疑惑求教sql 查询语句问题,谢谢!
问道G题(3)阿三好像没有那么差啊
有人想回国工作的吗?提供TURN家的Refer
请问一个cover letter称呼的问题Bloomberg面试(已悲剧),顺带拜求个内推
好几天没看见新题了计算机专业刚毕业,找工作好迷茫
怎么设计电话本的通配查找跟风deepthroat说说一件老中改名碰到的事
请帮忙作个SQL的题目TripAdvisor 内推
Emergency about the Error on my EAD card脸家 System design 新题, 求指点
相关话题的讨论汇总
话题: firstname话题: lastname话题: design话题: search话题: value