Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 471. Encode String with Shortest Length
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.
Asked at:
Amazon
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Late November, 2024
Amazon
Junior
Given a string, encode it into a specified format
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.