Deployment windows in a recurring weekCodingA deployment scheduler works on a recurring week of 10,080 minutes (7 × 24 × 60). Minute 0 starts the week and the schedule repeats every week.
Schedule video processing across CPU and GPU workersSystem designDesign a system that processes about one million videos a week. Each video goes through a pipeline of stages: some run on CPUs (decoding, splitting into segments, transcoding…
Last asked Oct 2026
+4
Design a GPU scheduling platformSystem designDesign a platform that shares a large GPU cluster among research and production teams. Teams submit training jobs (from a single GPU to thousands, running for days) and inference…
Last asked Oct 2026
+4
Design a CI/CD systemSystem designDesign a multi-tenant CI/CD system in the style of GitHub Actions. Repository events (a push, a pull request, a tag, a schedule) trigger workflows defined in a YAML file inside…
Last asked Oct 2026
+1
Reachability in a time-indexed train scheduleCodingA train schedule is a list of trains. Each train is a list of station names, and the index in the list is the time: train j is at station schedule[j][t] at time t, and is out of…
Last asked Oct 2026
Document indexing queue assignmentCodingDocuments arrive at an indexing service with m indexers, numbered 0 to m - 1. Document i (0-based) arrives at time queue_time[i] and takes processing_time[i] time units.
Last asked Oct 2026
+1
Design a workflow orchestration systemSystem designDesign a workflow system. Users define a workflow as a set of steps with dependencies between them and start runs of it.
Last asked Oct 2026
+1
Design a video generation service on a scarce GPU poolSystem designDesign the backend of a text-to-video service: users submit a prompt with options such as duration and resolution, a large generative model on GPUs renders a clip, and the user…
Design a scheduler for bursts of short serverless tasksSystem designTenants submit short serverless tasks, each needing some CPU, memory and maybe a GPU, a container image, possibly data on certain machines, a deadline and a priority. A burst can…
Dependency-aware concurrent tool schedulerCodingBuild a scheduler that runs AI agents' tool calls concurrently while respecting their dependencies. Each agent submits a set of calls that form a DAG: a call may start only after…
Request scheduler for an LLM inference engineCodingInside a provided Python project, implement the scheduler of an LLM inference engine. Each step of the engine runs one batch, and the scheduler decides what goes in it: prefill…
Last asked Aug 2026
Design a reliable job schedulerSystem designDesign a scheduler for one-time payment jobs, such as "pay this host on this date". Each job must run at or soon after its scheduled time and take effect exactly once, even when…
Schedule tasks with cooldownsCodingA CPU runs one task per time unit. Tasks have types, and two tasks of the same type must be at least n time units apart (between them there are at least n other slots, busy or…
Last asked Jul 2026
Data labeling scheduler with prefix-balanced modelsCodingA data labeling platform pairs tasks, AI models and human annotators. IDs are 1-indexed strings: tasks "t1"…"t{totalTask}", models "m1"…"m{totalModel}", humans…
Last asked Jul 2026
Troubleshoot a Kubernetes pod stuck in PendingSystem designA pod on a Kubernetes cluster never leaves the Pending state. Walk through how you find out why and how you fix it, step by step, from what the cluster tells you about the pod to…
Last asked Jul 2026
Design a control plane that tracks hosts and assigns jobsSystem designDesign the control plane for a large compute cluster. A central service must know the live state of every host (up or down, free GPUs and CPUs, memory, running jobs) and hand…
Thread-safe scheduler for periodic jobsCodingWrite a scheduler that runs functions periodically, for example a job at 50 Hz (every 20 ms) and another at 1 Hz. One worker thread runs the jobs, while other threads may…
Last asked May 2026
Free 30-minute time slotsCodingBuild the slot generator behind a booking page. A person has weekly working hours, for example Monday 09:00 to 12:00. Given a requested date-time range, return every 30-minute…
Last asked Apr 2026
Design calendar event conflict handlingSystem designDesign the event settings and conflict handling for a calendar product at the scale of a major consumer and business calendar. Users create, update and delete events with…
Last asked Apr 2026
Order queries to minimize total completion timeCodingYou get a list of queries, each written as an interval start, end. Running a query takes end - start time units; the endpoints say nothing about when it may run. One worker runs…
Last asked Apr 2026
Design re-engagement notifications for inactive usersSystem designDesign a re-engagement system for an AI assistant product. It has two jobs: send relevant notifications that bring inactive users back, and send reminders when a user asks the…
Last asked Apr 2026
Design a price tracking serviceSystem designDesign a service like a price tracker for online stores. It tracks the prices of millions of products across stores, shows each product's price history, and alerts users when a…
Design a job scheduler for ETL pipelinesSystem designDesign a system that runs ETL jobs for many teams, on schedules and as dependency graphs: a pipeline is a set of tasks where some tasks wait for others. The system defines…
Last asked Feb 2026
Find all GPU idle timesCodingYou are given the tasks that ran on a pool of GPUs, each as a GPU id with a start and end time. Find every window inside a time range when no GPU in the pool was running anything.
Last asked Jan 2026
Design a dependency-aware job schedulerSystem designDesign a job scheduler in which each job is a set of tasks with dependencies between them, a directed acyclic graph: a task may start only when every task it depends on has…
Last asked Jan 2026
Design Airbnb's notification systemSystem designDesign the notification system of a travel booking platform. It sends booking confirmations, check-in reminders, host messages and marketing over push, email, SMS and in-app…
Last asked Dec 2025
Account scheduler with locking and LRU selectionCodingBuild AccountScheduler, which hands out accounts from a fixed pool for periods of time. Each account is locked until some time and free from then on. Callers can check an account…
Design a job schedulerSystem designDesign a scalable job scheduler for other teams' workloads. It runs jobs immediately, after a delay, or on a recurring cron-like schedule, with priorities, retries with backoff…
Last asked Sep 2025
Allocate servers from a pool of mixed node typesCodingA service manages a pool of about 100,000 server nodes. Each node can serve one or more instance types. Clients ask for a number of servers that support the instance types they…
Last asked Sep 2025
Most tasks finished before their deadlinesCodingYou are given tasks, each with a positive duration and a deadline. One machine runs tasks one at a time, starting at time 0, in any order you choose; you may skip tasks. A task…
Last asked Aug 2025
Delayed job scheduler that runs each job after its delayOO designDesign and code a scheduler that accepts a job and a delay and runs the job that many seconds later. This is a low-level design question: name the classes, the APIs and the data…
Last asked Aug 2025
Invoice reminder emails and delinquent customersCodingEach customer has one invoice with a time and an amount. A configurable schedule says which emails to send, at offsets relative to the invoice time; the largest offset is the due…
Last asked Oct 2024
+1
Minimum workers with first-free job assignmentCodingJobs arrive as (jobid, start, end) with half-open times start, end). Workers are numbered 0, 1, 2, ... Part 1. Process jobs by start time (ties by job id). Each job goes to the…
Merge intervals for streaming GPU tasksCodingGPU 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…
Maximum profit from unit-time tasks with deadlinesCodingYou are given a list of tasks. Each task is a list of three strings: name, deadline, profit. - Every task takes exactly 1 second, and only one task can run at a time. - Time…
Gift delivery scheduler with limited agentsCodingYou are planning gift deliveries to employees in an office. The workday runs from hour 9 to hour 17. You get: - intervals, a list of start, end pairs with integer hours. Employee…
Smallest free hub for a taskCodingYou run a fleet of n compute hubs, numbered 0 to n - 1, and need to place one new task on a single hub. You are given: - capacities: an integer list of length n. capacitiesi is…
Find bottleneck dependencies in a parallel buildCodingYou are given n build targets numbered 0 to n - 1 and a list of directed edges edges. An edge u, v means target v cannot start building until target u has finished. The graph has…