Recursion-Smart keypad-1

Test case 1 is showing wrong answer

hey @Rishab, make it output[j]=’\0’ instead of output[i]=’\0’ in line no 8.

In line no 13. make it if(a[index]==" ") .

I have made these change and comment them.https://ide.codingblocks.com/s/84102

1 Like

hey @Rishab , if your query is resolved. Please mark this doubt as resolved and rate me on the basis of your experience.
rating option will appear when to mark this doubt as resolved

why did you change line 13 ? that was written acc to what was taught

hey @sattyrajpoot39, we need to check using space only, because index was not pertaining 0 value.