Mapped strings problem


why is there an extra D in 2 cases

hello @yyashu123
which test case u r talking.
please mention it here.

when i am inputing 1234

Output i am getting is this
ABCD
AWDD
LCDD
could you correct my code

pls refer this -> https://ide.codingblocks.com/s/232782.

we can combine two digits ony when s[i]!=‘0’ and s[i+1]!=’\0’ and s[i]s[i+1]<=26