It was a variance of Top K frequent elements.
The follow-up question was "How do you solve the same question if the size of the data is greater than your memory?"
and also a graph question where the follow-up was kind of similar. The question was "What happens if the graph doesn't fit on a single machine?"
Any idea how to answer these type of questions? Any resource you can point me to?
Would totally appreciate the help.