Decode String
Medium
Strings
An encoded string follows the rule k[encoded], meaning encoded is repeated k times. Print the decoded string. Brackets may be nested.
Constraints
1 <= len <= 30 Lowercase letters, digits and brackets; the decoded length is at most 10^5
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.