Given a log file that is too large to fit into memory, how w... | Interview Question
IntermediateGeneralTEXT
Given a log file that is too large to fit into memory, how would you compute the top-k most frequent IP addresses? Explain one or more approaches (including external-memory or streaming algorithms), and discuss time and space trade-offs.
Software Engineer
General
Tips for Answering
Follow these guidelines for a strong response
Use the STAR method (Situation, Task, Action, Result) for behavioral questions.
Provide specific examples from your experience with measurable results.
Keep your answer concise — aim for 1-2 minutes per response.
Practice out loud to improve delivery and identify gaps in your answer.