Available question text
Given a string s and integer k, delete up to k characters to minimize the length of its run-length encoding; the core challenge is choosing deletions that merge runs or avoid count-digit increases. This is typically solved with dynamic programming that balances deletions used, current run character/count, and remaining string.
Related questions
Continue with questions that share topics or the same question type.
- Better Compression of String
Coding
- Shortest String Compression Using a Doubling Macro Character
Coding
- String Compression
Coding · String · Two Pointers
- String Compression III
Coding
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
No company association
Leetcode 1531. String Compression II
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source