Smart Keypad Advanced

The sample testcase is not explained and i cannot get it what to do in this problem.

Hi siddharth,In this question you have to take input of a numeric string,then let you input number say 34(as in the sample test case) ,then you have to check that the strings created by the numeric string is the substring of which strings in the given vector of strings str(given in the question).for eg when you enter 34 the strings are, dg,dh,di,eg,eh,ei,fg,fh,fi (acc to the phone keypad) then check whether dg is the substring of any of the string in the given strings,if yes then print that string else dont print.repeat the same process for all the strings formed by 34.dh is present in vidhi so vidhi got printed,di is present in divyam so divyam got printed and eh is present in sneha so sneha is present.

1 Like

Thanks :slight_smile: