How to implement quicksort using recursion
问题 I am practicing using recursion to implement the quicksort algorithm. I am getting the error: RecursionError: maximum recursion depth exceeded in comparison Here is the error: In [2]: run quicksort.py --------------------------------------------------------------------------- RecursionError Traceback (most recent call last) ~/Desktop/algo/quicksort.py in <module>() 27 28 test = QuickSort() ---> 29 print(test.partition([7, 2, 1, 8, 6, 3, 5, 4], 0, 7)) ~/Desktop/algo/quicksort.py in partition