I tried trying the code and my sample case passed but it doesn’t get submitted.
So here first we have to create table variable in our code and then for first digit we get in input we need to multiply its every char value with digits of other code
KePad Understanding Gap
Copy your code on online ide (https://ide.codingblocks.com/), save it and share the corresponding link with me here.
I have saved the code on editor but there is no link to share
Regarding the question, you’ve misinterpreted the problem statement.
We are given a string consisting of digits and each digit can give any of the code as shown in your table. We need to find all the possible codes that can be generated.
For Ex:
Input:
23
Output:
ad
ae
af
bd
be
bf
cd
ce
cf
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.