Abbreviation Using Backtracking
medium
1. You are given a word. 2. You have to generate all abbrevations of that word. Use recursion as suggested in question video
Constraints
1 <= length of string <= 32
Format
Input
A string representing a word
Output
Check the sample ouput and question video.
Example
Sample Input
pep
Sample Output
pep
pe1
p1p
p2
1ep
1e1
2p
3
Question Video