Beginner · 25 min · 4 steps

Stopping double bookings when two jobs overlap

Alok Verma, Operations Scheduling Engineer at TaskMaster

Alok Verma is an engineer at TaskMaster, an app that sends workers to your home for AC repair, plumbing and deep cleaning in eight Indian cities. It is 9:15 AM on a hot Saturday in May. The support dashboard has turned red, with over 320 complaints about workers being booked twice at the same time.

The question

How do we write a Python check that finds overlapping time slots and adds travel time between jobs, so a worker is never booked twice?

  • Interval overlap logic
  • Datetime arithmetic
  • Schedule sorting
  • Capacity allocation

The rest of this case study is locked

The data, every step with its code and result, and the final answer open with a pass. A few case studies stay free so you can see how they work.