InterviewDB Experience

File Processing Time: Calculate Total and Per-Stage Duration from a Pipeline Event Log

Interview Experience

Problem You are given a list of pipeline events. Each event is a tuple (file_id, stage, status, timestamp) where status is either "start" or "end". Compute the total processing time for each file and the per-stage breakdown. Example: Follow-ups What if events for different files are interleaved? Does your solution still work? Handle missing "end" events -- mark those stages as "incomplete". Stages can overlap (parallel execution). How do you compute wall-clock total vs. CPU-sum total? The events…

Full Details

🔒

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

It covers the following topics: System Design, Coding, Phone .