由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - 那个streaming data 求出现次数topk的题目 到底怎么做的?
相关主题
设计一个数据结构用来快速Link nodes at same level in a binary tree 怎么做?
Google面经问个题目
G家 system design 和 open ended questions一道C面试题
关于gpa问个问题 附L面经..Google Front-end Software Engineer Phone Interview
sliding windows中维持topk频繁的queryGiven a node of a tree, find all nodes on the same level
TopK nearest points为啥用heap不用selection sort?amazon一道面试题
问一道类似topK的问题求教一道经典面题的解法
问一题bloomberg onsite题
相关话题的讨论汇总
话题: topk话题: data话题: node话题: count话题: streaming
进入JobHunting版参与讨论
1 (共1页)
n*******s
发帖数: 482
1
总是要hash
为了有效地求出topk, 则需要对value作手脚,比较直接的想法是维护一个minimum堆+
零散node, 每个node可以通过对data O(1)lookup到,并且node包括, 每
次有stream来了data, 就对node的count作update,需要topk时候 根据发生过的变化调
整heap。
不知道有没有比较漂亮的做法。
1 (共1页)
进入JobHunting版参与讨论
相关主题
bloomberg onsite题sliding windows中维持topk频繁的query
请教一个C++问题TopK nearest points为啥用heap不用selection sort?
MS onsite 面经问一道类似topK的问题
问道题,binary tree里有一个有indegree 2问一题
设计一个数据结构用来快速Link nodes at same level in a binary tree 怎么做?
Google面经问个题目
G家 system design 和 open ended questions一道C面试题
关于gpa问个问题 附L面经..Google Front-end Software Engineer Phone Interview
相关话题的讨论汇总
话题: topk话题: data话题: node话题: count话题: streaming