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