Here is my code:
import sys sys.setrecursionlimit(5000000) def partition(arr, low, high): i = (low-1) # index of smaller element pivot = arr[hig