One test case not passing

what is the problem in my code its not passing a testcase


Reply as soon as possible

@D19APPPP0016 on giving this as o/p
5
3 6 4 1 2
your code generate different results on compiling and they are not sorted

Then rectify it and send the modified code with the mentioned error in my code.
Don’t suggest ur own code.

@D19APPPP0016 bro why are you shuffling inside quick sort you are changing the array after performing the sort whats the point?? just shuffle once in main function here


dont forget to hit like and mark resolved if cleared :smiley:

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.