Smart Keypad - Advanced

need some hints to approach

hi @Divya_321
All you need to do is Break the Problem into 3 important components which are as follows :-
Bigger Problem : To Print all of the possible Strings from the given array that contains code generated by given number.
Smaller Problem : Assume the recursion works and will give you ans for N - 1 length of String.
Self Work : In order to make you smaller prblm your problem all you need to work for the 0th index element. Because it could be the part included in the answer or not. and self work is to use first character as it is and another time with the next variable.For e.g…,
In 123 either use 1 as it is or use code for 12 instead.

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.