Take as input str, a string. Assume that value of a=1, b=2, c=3, d=4, … z=26. Write a recursive function (return type void) to print all possible codes for the string. E.g. for “1123” possible codes are aabc, kbc, alc, aaw, kw.
Take as input str, a string. Assume that value of a=1, b=2, c=3, d=4, … z=26. Write a recursive function (return type void) to print all possible codes for the string. E.g. for “1123” possible codes are aabc, kbc, alc, aaw, kw.