InterviewDB Experience

Average Travel Time: Compute Mean Trip Duration Between Station Pairs from Tap-In/Tap-Out Logs

Interview Experience

Problem You have a transit log of tap-in and tap-out events. Each event is [customer_id, station, timestamp]. A trip is completed when a customer taps in at station A then taps out at station B. Compute the average travel time for each unique (start_station, end_station) pair. Follow-ups Your implementation must handle events arriving out of chronological order. How does this affect your approach? What happens if a customer taps in twice without tapping out? How do you handle malformed data? The…

Full Details

🔒

Unlock all Instacart 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 instacart interview during the phone round.

It covers the following topics: Coding, Onsite, Phone .