InterviewDB Question

Expansion: Expand a Compressed Run-Length Encoded String

Question Details

Problem You are given a run-length encoded string in the format "<count><char>" repeating (e.g. "3a2b1c" -> "aaabbc"). Implement a decoder. Additionally implement the encoder: given a plain string, produce its run-length encoding. Example: Edge cases…

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Coding Phone