271. Encode and Decode Strings

Problem

Design an algorithm to encode a list of strings to a single string and decode it back.

Design an algorithm to encode a list of strings into a single string for transmission, and decode it back to the original list. Strings may contain any characters.

Examples
Input: ["lint","code","love","you"]
Output: ["lint","code","love","you"]
Hints
Related Problems

271. Encode and Decode Strings

Design an algorithm to encode a list of strings to a single string and decode it back.