Why some test cases are not passing


pls help

try without doing stl… as u should always know the basics… refer to my code https://ide.codingblocks.com/s/235928

Yes I know how to do them without stl but it should not give wrong answers though

in case of multiple same values u have to handle it carefully…

u still have any doubts??

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.