x and y were never variables in the actual code. If you read the first statement of my green text in that post:
In order for the element on the the left portion of the partition (x) to swap with...
Type: Posts; User: SamJava_the_Hut
x and y were never variables in the actual code. If you read the first statement of my green text in that post:
In order for the element on the the left portion of the partition (x) to swap with...
Okay, lets start over, following this guy's example:
https://www.youtube.com/watch?v=Fiot5yuwPAg&t=315s
According to him, the quick sort algorithm is explained like this:
In order for the...
I'm trying to learn the swap functionality for the quick sort algorithm, but the variable swapping seems to be going around in circles.
Here is the class with the partition and quickSort...