Question 1

Given a string as input, return the list of all the patterns possible:

‘1’ : [ ‘A’, ‘B’, ‘C’ ],

‘2’ : [ ‘D’, ‘E’ ],

’12’: [ ‘X’ ],

‘3’ : [ ‘P’, ‘Q’ ]

Example if input is ‘123’, then output should be [ADP, ADQ, AEP, AEQ, BDP, BDQ, BEP, BEQ, CDP, CDQ, CEP, CEQ, XP, XQ]

[advanced_iframe securitykey=”undefined” src=”” width=”100%” height=”600″]

Register for the new batch at KodNest and start your journey to success.Secure Your Spot Now!Claim Your Seat

Request A Callback

Get a Free 30-minute Counseling session with our experts.