Available question text
Given a string, produce its shortest encoded form using the k[encoded_string] notation (allowing nested encodings) by replacing repeated substrings with counts. The core challenge is interval dynamic programming combined with efficient detection of repeated patterns (and choosing optimal splits/nesting) to minimize encoded length.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
Amazon
Leetcode 471. Encode String with Shortest Length
Reported Nov 20, 2024 · 1 source report
JUNIOR
Source snapshot: Nov 12, 2026
View source