i tried it to modify for inputs with 0, but it is generating extra outputs.
Please help.
Corner case problem
use if and else to control the recursion
int digit = in[i] - '0';
char ch = digit + 'A' - 1;
if(digit == 0){
generate_strings(in,out,i+1,j);
}
else {
out[j] = ch;
generate_strings(in,out,i+1,j+1);
}
MOdified Code
if you want to ask something about this feel free to ask
i hope this helps
if yes show your response with and don’t forgot to mark doubt as resolved