Algorithm · OpenAI · Medium
Implement a reversible codec for an ordered list of strings, exposed through a single dispatcher solution(operation, data). If operation equals "encode", data is a list of strings and you must return one encoded string. If operation equals "decode", data is an encoded string and you must return the original list of strings. Each original string may be empty or may contain any character, including digits, whitespace, punctuation, and characters that would otherwise be usable…
Checking your access…