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

Course
Course
