3 ms·
the post was getting too long to put in all the details, but basically, what I was getting at, imagine the data comes in batches and you have to retain the N la
by glofish 7y ago
the post was getting too long to put in all the details, but basically, what I was getting at, imagine the data comes in batches and you have to retain the N largest seen so far
- minimaxir 7y agoIMO, that's not an appropriate question for a data scientist. Maybe it's better for a data engineer or a SRE.
- glofish 7y agoBasically you are saying that you cannot think of a way of doing this, other than the most inefficient way --> hiring a new person This answer would make you fail the interview :-)
- nhumrich 7y agoOr pass the interview if it was a management role
- aprdm 7y agoIt's honestly pretty ridiculous seeing your tone in the comments and how you think that highly about your bad interview questions and your flawed conceptions about the solutions, including CSV and TSV confusion. This smile makes it embarrassing even. Hope I never pass your interview!
- nutjob2 7y agoThe question is ambiguous and misleading or just simply nonsensical. This sort of thing is sadly common in interviews, where the interviewer some arbitrary answer in mind and expects you to read his mind, which is possible only some of the time. By definition you can't sort an infinite list. You've conveniently turned the question, in your mind, into something like "how do you efficiently maintain an ordered list of incoming items?"