File Chunks / Consecutive Byte Ranges

A file is uploaded as a stream of chunks. Each incoming chunk is an inclusive interval [start, end], meaning that every byte in that range has been received.

After receiving each chunk, output the ...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: