DIY: Decoding a String
Problem statement
Given an encoded string, return its decoded string.
The input string is encoded such that k[pattern]
should be decoded to pattern
repeatedly for k
times. Note that pattern
...
Create a free account to view this lesson.
By signing up, you agree to Educative's Terms of Service and Privacy Policy