code: https://ide.codingblocks.com/s/217697
i am getting tle in one test case ,
please have a look at the code
Getting tle in one test case
Hi @Chhayansh, in the question it is mentioned that (Note : Use randomized quicksort, otherwise worst case will not pass). so select your pivot element random while applying quicksort
refer below code for explanation and code:-
In case of any doubt feel free to ask 
If you got the answer then mark your doubt as resolved
i am not able to randomize
please provide the code
i have already provided you the code see above link