| [ Web Proxy ] |
| Viewing: https://raw.githubusercontent.com/iCodeIN/python-3/master/algorithms/sorting/quick_sort.py | [Back] [Original] |
""" Here is the implementation of quicksort algorithm in python by Pramod Bharti quick_sort() function takes an unsorted array and prints sorted array """ def quick_sort(arr): if len(arr) pivot] return quick_sort(left) + middle + quick_sort(right) print (quick_sort([5,2,8,3,9,12,43])) # This will print [2,3,5,8,9,12,43]
| Web Proxy Viewer | New URL | Original Page |