DataDriven
LearnPracticeInterviewDiscussDailyJobs

Between the Pings

A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.

Domain
Python
Difficulty
medium
Seniority
mid

Problem

A robotaxi fleet streams location pings onto a message bus, and you're handed one batch of them in no particular order. For each vehicle, a session is a run of its activity where consecutive pings are no more than `gap` seconds apart; report how many sessions each vehicle recorded.

Summary

The fleet never stops talking. Find where each vehicle paused.

Practice This Problem

Solve this Python problem with real code execution. DataDriven runs your Python code in a real environment and grades it automatically.

Related

  • All Practice Problems
  • Mock Interview Mode
  • Python Interview Questions
  • Data Engineering Interview Prep Guide
  • Daily Challenge
  • Data Engineering Lessons