Given an encoded string, return its decoded version. The encoding rule follows the pattern: k[encodedstring], where the encodedstring is repeated exactly k times.
Note: The k is guaranteed to be a positive integer.
Assume that the input ...
⋮
Problem
Submissions
Solution: Decode String
Statement▼
Given an encoded string, return its decoded version. The encoding rule follows the pattern: k[encodedstring], where the encodedstring is repeated exactly k times.
Note: The k is guaranteed to be a positive integer.