Samrt keypad advance


sir i tried to code with a different approach and the logic is working but it is printing all the names again in the end and i cant figure it out why. please help

hi @Shivanchal-Agarwal-2530139037020445

you have done a small mistake on line 24-25
if(s2[j] == ‘\0’)
return true;
correct one should be
if(s2[j] == ‘\0’)
return false;

modified code

if your doubt is resolved
Please mark it as resolved

if you have any doubt regarding this feel free to ask

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.