6Companies30days
10m
Question
Find max 10 numbers in a list having 10M entries.
Opinions -
StackOverflow
Quora
My idea
keep an array of size 10
and while traversing maintain the top 10 elements