Coding

Encode and Decode Strings

Encode a list of strings into a single string and decode it back.

Input: strs = ["","hello",""]

Output: ["","hello",""]

Explanation: Prepends chunk lengths and a delimiter (e.g., "0#5#hello0#") to safely encode and perfectly restore empty strings.

Was asked at

Practice this question with AI

First session is free - no credit card required.

Go Premium

More interviews, more skills, more success.

No answers yet

Be the first to share your approach to this question

Practice More Questions

Interview question asked to Software Engineers interviewing at Meetup, MongoDB, Curve and other companies. Original question asked: Encode and Decode Strings.