can you please see the code where i am going wrong
Logically seems correct but giving wrong output
@narayansatish indentation in your code is very very poor, very difficult to read, please do the proper indendation first.
or tell me the logic you are using for find the prefix string so that i can correct you
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.
please see now after identation
@narayansatish
Please replace this in your code
{ string pass=(it)->first.data+"";
pass=s+pass;
this->prefix( pass,it->second);
}
with
{ string pass = s + it->first;
this->prefix( pass,it->second);
}
If your doubt is resolved please close it
it is still giving wrong answer for other testcases
@sanyamsinghalmnnit
Please see the correct code here and cross verify your approach https://ide.codingblocks.com/s/215058