Because for pivot as starting element it might take O(n^2) time if it is in decreasing order…
For randomized quicksot does he mean that we need to choose pivot randomly
yes , we need to choose pivot randomly to avoid situations as you have mentioned
in case you have difficulty in implementing it then do ask
okk…sure…
please provide me the link to resolve this…