← Questions

Merge intervals for streaming GPU tasks

0

A coding interview question asked at Fireworks AI. It tests intervals, merge and scheduling.

GPU tasks arrive one at a time, each with a start and end time. Keep the set of busy periods as merged, non-overlapping intervals while tasks keep arriving, and answer queries about it at any point.

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

What it tests

intervals · merge · scheduling

Your code and the AI tutor open when you unlock this question.