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

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

Example 1:
Input: {"strs":["lint","code","love","you"]}
Output: ["lint","code","love","you"]
Input
arr ={"strs":["lint","code","love","you"]}

Start Decoding

Original:
lint
code
love
you
Encoded String (Process)
4#lint4#code4#love3#you
Decoded:
Variables
No variables to display
DepthFunction Call
Stack empty
0/20