Decode String at Google
Medium62.2% acceptance
This problem has 62.5% frequency at Google.
Problem Description
Given an encoded string, return its decoded string. The encoding rule is: `k[encoded_string]`, where the `encoded_string` inside the square brackets is being repeated exactly `k` times. Note that `k` is guaranteed to be a positive integer. You may assume that the input string is always valid; ther...
Read full problem and hintsTopics
Also asked at 40 companies
More Google Questions
Add Two NumbersMediumLongest Substring Without Repeating CharactersMediumLongest Common PrefixEasyTrapping Rain WaterHardMerge Strings AlternatelyEasy
View all Google questions