how to do this question i am not able to understand the problem
Smart keypad challenge
have you used the keypad phone?
in that to write a message we have to press the buttons
using 1 we can type “.+@$” using 2 we can type “abc” etc.
string table[] = { " ", “.+@$”, “abc”, “def”, “ghi”, “jkl” , “mno”, “pqrs” , “tuv”, “wxyz” };
now if a person press 12 then you have to print all the possible strings that can generate
Output:
.a
.b
.c
+a
+b
+c
@a
@b
@c
$a
$b
$c
HINT : use recursion to solve the problem
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.