InterviewDB
Experience
Passage Tracker: Track and Query Entities Passing Through Checkpoints in Order
Interview Experience
Problem You are given a sequence of events: {entity_id, checkpoint_id, timestamp}. An entity "completes the passage" if it passes through all required checkpoints in the correct order (by timestamp). Given the list of events and an ordered list of required checkpoints, return all entity IDs that completed the passage, sorted ascending. Example: Follow-ups What is the time complexity of your approach? How would you handle an entity that passes through a checkpoint multiple times? If checkpoints c…
Full Details
🔒
Unlock all Karat questions
Full insider details, leaked discussions, and candidate experiences.
or every company, $100/year →About This Question
This is a candidate experience report from a karat interview.
It covers the following topics: Coding .