Pleasse explain the ques

in this ques how char values are take from the input???
and how they mad combinations???

@akshatj07 Hi bro so here is my two cents for the explanation part -

Relate this problem to your mobile’s keypad.
If you have to search the name/contact of any particular person, then you can directly search on the keypad as:

2 corresponds to letters a, b, c
3 corresponds to letters d, e, f
4 to g, h, i
so on… till 9

So, you have given a vector of names/ strings as specified in the question.
Now, the user will enter a string of digits.

Example : 34

34 will result into combinations :

dg eg fg
dh eh fh
di ei fi

Corresponding strings are output.

  1. vidhi contains dh
  2. divyam contains di
  3. sneha contains eh

Now this is the keypad array you have to use like this -
public static char[][] keypad = {{’ β€˜}, {’.’, β€˜+’, β€˜@’, β€˜$’}, {β€˜a’, β€˜b’, β€˜c’}, {β€˜d’, β€˜e’, β€˜f’}, {β€˜g’, β€˜h’, β€˜i’}, {β€˜j’, β€˜k’, β€˜l’}, {β€˜m’, β€˜n’, β€˜o’}, {β€˜p’, β€˜q’, β€˜r’, β€˜s’}, {β€˜t’, β€˜u’, β€˜v’}, {β€˜w’, β€˜x’, β€˜y’, β€˜z’}};

Bro if you have done smart keypad - 1 then it will be easy for you because just you have to search in the given array.

If you want code for reference I can give that to you, but bro try if you can do it by the hints!
Happy coding buddy!

@akshatj07,
What doubt are you having in this?