Encode and Decode Strings (#271)

Design an algorithm to encode a list of strings to a single string. The encoded string is then sent over the network and is decoded back to the original list of strings.

Please implement encode and decode.

Note: This is a premium LeetCode problem. The description is provided for educational purposes.

Company Tags: Google

Core Concept: String Manipulation, Encoding Schema