Run-length encode a string ("AAAB" → "3AB") after first deleting exactly K consecutive letters. Which deletion gives the shortest encoding?
Run-length encode a string ("AAAB" → "3AB") after first deleting exactly K consecutive letters. Which deletion gives the shortest encoding?
Opens with the full question.