Recursion-Phone Keypad


It is getting wrong for the input 2113

hello @Gade_Deepthi
remove this if statement.
image

but after removing i m not getting correct format of output

what output format they wants?

this is the question right ?

if we give input 2113 the output should be (AD,AE,AF,BD,BE,BF,CD,CE,CF,)

This is the question in Recursion and backtracking concept of videos and the name is “Phone Keypad”

ok then dont remove if statement .
but add return statement in same if satement.

image

yes its resolved thank you

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.