Can you please tell what is problem in this
@guptanikhil898
Firstly why are you sorting your final string s. If you sort it, it will become same string everytime.
Your final output array should be sorted. So better is store your s string in some set and print it in main function.
@guptanikhil898
I have made change in your code, please check here https://ide.codingblocks.com/s/254920
@guptanikhil898
I think you get the logic and successfully solved this question. Please mark this doubt as resolved.
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.