NeetCode #359LC-394MediumStackNC 250
← Back to All Problems#359 · #394 · Decode String(字符串解码)
📌 Problem Statement & Constraints
Given an encoded string, return its decoded form. The encoding rule is
k[encoded_string], meaning the enclosed string repeats exactly k times. Brackets may be nested and k is a positive integer. Constraints: 1 <= s.length <= 30, 1 <= k <= 300; the input is always valid.🔒
Sign In to Unlock Full Solutions for All 973 Problems
Sign in to access step-by-step logic, benchmark Python3 code, complexity breakdown, and offline export!