What will be time and space complexity for this problem ?
Recursion phone keypad problem complexity
lets say the number id 234 then time and space complexity is same and it is 333.
Because 2 can have any three values a,b,c and 3 can have any three values again d,e,f . similarly 4 can have three values g,h,i. Hence 333 for this example .
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.