Hello,
In pseudocode for the algorithm the condition to swap current element is now defined as
Code:
If the current element <= pivot
but it should be >= according to the implementation that follows and the preceding explanation
Quote:
|
...each time you find a value greater than or equal to the pivot, you need to move it to the right, into G.
|