Category: String

Find all possible combinations by replacing given digits with characters of the corresponding list

Given N lists of characters and a number whose digits lies between [1-N], print all possible combinations by replacing its digits with characters of the corresponding list. If any digit of the number gets repeated, it should be replaced by same character considered in its previous occurrence.

Read More Find all possible combinations by replacing given digits with characters of the corresponding list