please explain the test case.
Please explain the test case?
Hello @sharad1103
Here you are given the keypad
string table[] = { " ", “.+@$”, “abc”, “def”, “ghi”, “jkl” , “mno”, “pqrs” , “tuv”, “wxyz” };
and a number as an input 12
Here digit 1 corresponds to 2nd string ( “.+@$”) in the array “table” as it is zero-indexed
and 2 digit 2 corresponds to 3rd string (“abc”)
so you just need to print all the combinations formed by taking an element from 2nd string and an element from 3rd string
If the input has been 158
Then you need to print all the combinations formed by taking an element from 1st string ( “.+@$”), an element from 6th string (“jkl”) and an element from 9th string (“tuv”)
Ex:-
.jt
.ju
.jv
+jt
and so on