Back to problems

File Chunk Range Tracking

Algorithm · Roblox · Medium

Merge File Chunks Medium · Topics · Company Tags · Hints You are receiving chunks of a file, each described by an inclusive byte range [start, end]. After every new chunk arrives, you must output the current list of non‑overlapping ranges that cover all bytes received so far. Two ranges that are directly consecutive — where the end of one is exactly start - 1 of the next — must be merged because together they form a single contiguous segment. Implement a function…

Checking your access…