Given a string word, return a list of all possible generalized abbreviations of word. The abbreviations can be returned in any order.
A generalized abbreviation is formed by replacing any number of disjoint, nonadjacent substrings of word with their respective lengths.
Constraints:
word.length
word consists of only lowercase English letters.
Given a string word, return a list of all possible generalized abbreviations of word. The abbreviations can be returned in any order.
A generalized abbreviation is formed by replacing any number of disjoint, nonadjacent substrings of word with their respective lengths.
Constraints:
word.length
word consists of only lowercase English letters.