I am only passing one test case can you correct my logic? Code is saved at https://ide.codingblocks.com/s/170665
Remove duplicates
@yath17 hey yatharath you dont need to take a extra empty string
just send string to the function with the initial point say 0 and length of the string
the base case would be if(i==n) return ;
recursive case
if(s[i]==s[i+1]){
return work(s,i+1,n);
}
cout<<s[i];
work(s,i+1,n);