Skip to main content
All Questions

Detect an event whose duration exceeds a timeout.

Unlock detailed company stats for this questionUpgrade

Given a list of events sorted by timestamp, each with a unique ID and timestamp, and a timeout value, determine if there exists an event where end_time - start_time > timeout.

Follow-ups: implement it with O(1) space; what if events are stored in files instead of memory; what if events are split across multiple files?

Expect follow-ups like

  • Implement a solution with O(1) space complexity.
  • What if events are stored in files instead of memory?
  • What if the events are split across multiple files?

Community answers

No answers contributed by the community yet.

Related courses

Course

Software Engineering Interview Prep

Land your dream software engineering role at Google, Amazon, Microsoft, Meta, Apple, and other top companies. Learn from mock interviews, frameworks, and advice from senior candidates—practice data structures, algorithms, system design, people management, behavioral interviews, and more.

Course

System Design Interviews

Learn how to answer the latest system design questions across product, infrastructure, and AI domains. Features in-depth video examples, written breakdowns, and helpful reference patterns. Watch senior engineers and managers answer these questions in mock interview videos.