India’s Best Job Seekers and Training Platform Forums Algorithm Solutions Discussion Given a string as input, return the list of all …

  • Given a string as input, return the list of all …

  • Akash 

    Administrator
    at

    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]

Log in to reply.

Original Post
0 of 0 posts June 2018
Now
KodNest Training New Batch is starting on 02nd November 2020. Attend one week free demo classes.Register Now

New Report

Close