Problems / Arrays & Hashing / Encode and Decode Strings
#6 Medium O(n) O(n) Animated

Encode and Decode Strings

Design an algorithm to encode and decode a list of strings.

LeetCode ↗
Approach: Length Prefix (Chunking)
Click play to start
Step 0 / 0
Press play to start the visualization.

Steps