Mapped Strings problem

plz help me with this prob to build a logic

Hello @akb.tech17,

  1. you don’t have to print null string.

  2. You do not have to ignore 0 always.
    …You can ignore all 0s at the start of the string, coming before any other digit. Example: 000987 ==> 987.
    …If it is coming between two non zero numbers, then you can ignore it for the case when you are considering it individually or with any digit but at left side(i.e. higher order digit). In this case you can use this zero at ones place of the two digit number. example: 01,02, etc ignore and 10 and 20 can be considered.
    …if multiple Zeros are at end of string. Example: 2340000 ==>2340, you can ignore all unnecessary 0s.

  3. One you have all the combinations of alphabetic string, print then in lexicographical order.
    …You are not required to sort alphabets of each string, example: CBA to ABC.
    …You have to print different string in lexicographical order example: ABC, ACB, CBB, AAB output: AAB,ABC,ACB,CBB.

Let’s Start with 1023;

[1,2,3] =ABC
[1,23]=AW
[10,2,3]=JBC
[10,23]=JW

Now, coming to the next example 1432

[1,4,3,2]=ADCB
[14,3,2]=NCB

BTW you have to consider the case of single 0 between non-zero digits only. Rest you can ignore.

It may be assumed that the input contains valid digits from 0 to 9 and there are no leading 0’s, no extra trailing 0’s and no two or more consecutive 0’s.

Hope, this would help.

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.

sir can i have algo for thi s prob

as im unable to solve this

@akb.tech17 im sharing my code with you. https://ide.codingblocks.com/s/179245
please try to understand the logic behind the code and try to implement it on your own first. I hope I have cleared your doubt now, please mark it as resolved if you are satisfied.

Hey Anshul, Since you are not responding to this thread I am marking your doubt as resolved. Please re-open if needed.

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.