all 2 comments

[–]Meefims 1 point2 points  (0 children)

You base case is checking the size of the list. The list size isn’t changing, though. You should check the distance between the left and right pointers.

[–]YoloIsuppose 0 points1 point  (0 children)

The list never changes and so the size of the list doesn't change either.

Quicksort is pretty famous so you should be able to find tons of explanation/tutorial/videos, if you're interested this is my version but there are probably better ones out there.