Problem 271 · Medium

Encode and Decode Strings

Prefix each string with its length and a delimiter so decoding is unambiguous.

Open the interactive visualisation