Slowest Processing Speed to Meet a Deadline

Asked at Apple · Coding Questions · Difficulty: Medium · Last asked Apr 14, 2026

A worker has `n` batches of records to process before a deadline that is `h` hours away. The worker picks one fixed speed `k` (records per hour) and keeps it for the whole job. Find the slowest speed that still finishes every batch in time.

Loading the problem…