Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • $\begingroup$ What is the Quicksort that you all know and love? $\endgroup$ Commented Jan 14, 2017 at 22:38
  • $\begingroup$ Partitioning starts both at the left and the right, until it finds an element > pivot on the left, and an element < pivot on the right, and exchanges them. $\endgroup$ Commented Jan 15, 2017 at 9:33
  • $\begingroup$ And typically you wouldn't take the first or last element the pivot, because that makes sorts and reverse sorted take quadratic time. $\endgroup$ Commented Jan 15, 2017 at 21:58