Quicksort problem

why is it not passing any cases ?

hello @divyam_13

check now->

now if its shows tle then use randomised quick sort

image
why do i need to declare like this

this is safest way of array initialisation, it will take only required amount of memory.

in ur case -> u have defined a very big size array because of which ur program was crashing again n again.

also use this ways of array declaration.

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.