def encode(self, strs):
        strs = map(lambda x: str(len(x))+"/"+x, strs)
        return reduce(lambda x, y: x+y, strs, "")  # i.e. "".join(strs)
Encodes a list of strings to a single string.
dataset/ETHPy150Open algorhythms/LeetCode/271 Encode and Decode Strings.py/Codec.encode