Unable to understand the problem and test cases
Smart Keypad Advanced
Hello @Divya_321
In this question you need to print those strings (from searchIn array) that contain the strings generated by the alphabetical combination of number given as the input
Ex:- 26
2 => a,b,c
6 => m,n,o
So print all those strings that contain these combinations
am, an, ao, bm, bn, bo, cm, cn, co
divyam is printed as it contains “am” in it.
Also you only need to print strings from these only
string searchIn [] = {
“prateek”, “sneha”, “deepak”, “arnav”, “shikha”, “palak”,
“utkarsh”, “divyam”, “vidhi”, “sparsh”, “akku”
};
Let me know if you still need any help.
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.
I have written the reqd code but it’s not giving any ouput please correct it
codeLink:https://pastebin.com/Hik2T7D2
Here is the modified code
The only error was in line 23 where you wrote
i < out[j] != ‘\0’
Let me know if you still need any help.
thank you so much for looking into it.