Problem
Given a stream of data, how would you design a system to find the top K most frequent elements in real time?
You are practicing as a guest. Sign up free to get your answer graded with AI feedback. Your draft stays right here.
Given a stream of data, how would you design a system to find the top K most frequent elements in real time?
You are practicing as a guest. Sign up free to get your answer graded with AI feedback. Your draft stays right here.