Phone keypad problem


when giving input in terms of 0 or 1 permutation no output is coming example 10 or 51 rest is fine

when the target value == 0 or 1
then simply call the function by increasing the pointer in __in __array while keeping the j pointer on the same position since nothing is added

but why this is happening i want to know logic…

since , we there is no character at map[0] & map[1] so basically the for loop doesnt run, hence the code would not proceed furthur, and no recursive call will be made at this point ,
hence in order to prevent overflow, we make a call to the next character in the input array .
so that the code progresses and the remaining characters are processed

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.