All test cases not passing,please point out mistake
hi @deepaksehrawat150_50930f2fcb83f47e
in ques it’s mentioned output for each test case in sorted form…
but for some test cases, ur code is not printing o/p in sorted form… so what u can do is instead of directly printing, first store in an array/vector… then sort them and print…
u can refer my code -->
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.