ab + cde would become an ambiguous 23).
For example, the word house has the shorthands h3e, 1ous1, 5 and house itself.
Given a word word, return all of its shorthands in any order.word="cat" → ['cat', 'ca1', 'c1t', 'c2', '1at', '1a1', '2t', '3']
Eight options: cat, ca1, c1t, c2, 1at, 1a1, 2t, 3. For example, c2 hides at, and 1a1 hides one letter at each end.
word="z" → ['z', '1']
The letter is either kept or replaced with 1.
word="cat"
['cat', 'ca1', 'c1t', 'c2', '1at', '1a1', '2t', '3']
Run checks the first 3 tests in your browser. Submit checks all 56 tests on the server, hidden ones included.