Even though I have used randomized quicksort, still 2 of my cases show run error. I can not figure out why. Please help.
Here’s my code:
2 cases showing "run-error"
Hey @Doctor_Insult
Code is fine. But you have taken array size as 10. Problem statement says it can be upto 2*10^5 also elements can be upto 10^9 so you long array not integer.
If your doubt is resolved please mark it as closed.