InterviewDB Experience

Streaming Compression: Implement Run-Length Encoding on a Byte Stream

Interview Experience

Problem Implement a streaming RLE (run-length encoding) compressor and decompressor that processes data chunk by chunk — input may arrive in variable-size chunks and must be processed incrementally without buffering the full input. Encoding format: [count: 1 byte][byte_value: 1 byte] for runs of 1-255. Runs longer than 255 are split. Example Follow-ups What is the worst-case output size for RLE, and what inputs trigger it? How would you extend this to LZ77 streaming compression? How do you desig…

Full Details

🔒

Unlock all Jane Street questions

Full insider details, leaked discussions, and candidate experiences.

Get full access — $100 a year, unlimited access

About This Question

This is a candidate experience report from a jane street interview during the phone round.

It covers the following topics: Coding, Onsite, Phone .