Please tell me Where My Code went Wrong

Please tell me Where My Code went Wrong

@sriharshamadireddy please share your code by saving it on ide.codingblocks.com

How to share? I don’t know as i am new to Cb

@sriharshamadireddy copy paste your code on ide.codingblocks.com and click on file>save after you save it a new url will be generated. Copy paste that link here.

my code isn’t working only for one test case (corner case) can you please tell me the corner case for which my code fails

hi @sriharshamadireddy there is some issue with the way you are taking input. All the elements are not being stored in the vector. So i’d suggest you to take input via cin, since you have to take only words as input which means that there will not be any spaces, thus eliminating the need for alternate measures.

The other issue might be that, the test case you failed contains uppercase letters in the string, so that might create problems while comparing the string and the output too. Try converting all the strings to lowercase before you put them in the priority queue.

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.