Skip to content

Latest commit

 

History

History
39 lines (24 loc) · 714 Bytes

File metadata and controls

39 lines (24 loc) · 714 Bytes

Encode and Decode Strings

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

Please implement encode and decode.

Example 1:

Input: ["neet","code","love","you"]

Output:["neet","code","love","you"]

Example 2:

Input: ["we","say",":","yes"]

Output: ["we","say",":","yes"]

Constrains

  • 0 <= strs.length < 100
  • 0 <= strs[i].length < 200
  • strs[i] contains only UTF-8 characters.

Solution

Encode and decode strings solution.

Retention Tracking

  • retained 15.02.25
  • retained 25.02.25
  • retained 08.03.25
  • retained 25.03.25