Reported interview periodOct 2025–May 2026
Design a Weighted, Checkpointable Data Batcher
You are training on several named datasets. A registry can open an iterator for a dataset at a supplied item offset. Design a batcher that mixes examples according to positive integer weights and can resume exa…
Practice focusThe supplied registry exposes get iterator(name, offset=0) , returning an iterator beginning at that dataset's zero-based item offset. It does not advance any other dataset. Implement the batcher, not the registry. Requirements - Every full batch contains exactly batch size examples while data remains available. - Allocate the integral share first, then distribute leftover slots using a deterministic largest-remainder carry across batches. - Break ties by the insertion order of weights and emit examples grouped in that same dataset order.…