Generalized Abbreviation
Generate all possible generalized abbreviations of a word by replacing consecutive characters with their count. Use backtracking to explore both abbreviating and keeping each character position.
Generate all possible generalized abbreviations of a word by replacing consecutive characters with their count. Use backtracking to explore both abbreviating and keeping each character position.