← Questions

Decode string

0
AbridgeWaymoCodingLast asked Sep 2026

A string is encoded with the rule k[text], meaning text repeated k times; k is a positive integer that may have several digits, encoded parts can be nested, and plain letters can sit between them. Return the fully expanded string.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding