pysorters
Python package with sort methods for everything you could even imagine! :rocket: :rocket: :rocket:
Table of Contents
Installation
You can install the package via pip:
pip install pysorters
Or via git:
pip install git+https://github.com/yo1am1/pysorters.git
Usage
- Bubble Sort
from pysorters import Sorter
sort_1 = Sorter()
array = [3, 2, 1]
sort_1.bubble_sort(array)
print(array)
sort_2 = Sorter([10, 9, 6, 7, 8, 3, 5, 4, 2, 1])
result = sort_2.quick_sort()
print(result)
- Quick Sort
from pysorters import Sorter, gran_array_int
sort = Sorter(gran_array_int(10, 1, 10))
result = sort.quick_sort()
print(result)
... and many more!
License
This project is licensed under the terms of the MIT license.