DSA-with-Go icon indicating copy to clipboard operation
DSA-with-Go copied to clipboard

Randomize pivot value in implementation of quick sort algorithm,

Open Mystigan opened this issue 5 years ago • 0 comments

Currently, the last element is always picked as the pivot. Randomize this such that the pivot is a random number between the "start" and "end" indices passed to the partition function. Test your solution properly before opening a PR.

Mystigan avatar Oct 09 '20 16:10 Mystigan