Design a class that can handle streaming prices data and implement function for get the top 5 prices and the other function for the most frequest price.
Risposta di colloquio
Anonimo
26 ott 2023
maintain a hash map and a heap to keep track of the top prices and the frequency