I didn’t understand this question, please explain this ques in detail with more examples
Smart Keypad - Advanced (Recursion Problem)
Hey @SamyakJain3825
According to the question,
You are given an array of strings
string searchIn [] = {
“prateek”, “sneha”, “deepak”, “arnav”, “shikha”, “palak”,
“utkarsh”, “divyam”, “vidhi”, “sparsh”, “akku”
};
You have to print those strings from the array which contain strings generated by the given numeric string str.
Let’s take the given example in which str is 34.
According to the smart keypad problem, the strings generated by 34 are “dg”, “dh”, “di”, “eg”, "eh’, “ei”, “fg”, “fh”, “fi”.
Now you need to print those strings from the array searchIn which contain any of the above generated strings from 34.
Those strings are “vidhi”, “divyam”, “sneha” because “vidhi” contains “dh”, “divyam” contains “di” and “sneha” contains “eh”.