whats wrong with my code?
Recursion Dulicate String formatter
Hi @rohit267
here is the updated code.
pls refer to dis for more help.
if something is not clear, pls post ur doubt here.
hope dis helps.
@rohit267
when u r calling checkDuli(inp,out,i+1); inside ur function, it is returning string.
so u should use string s=checkDuli(inp,out,i+1);
and since return type is string. u need to return something at the end of ur code too.
so its better to declare return type as void, and declare variable globally.