5 methods of sort in python
Project description
Sort_methods - it`s a python package for list's sorting
Installing
pip install sort_methods
Guide
from sort_methods import sorter
sorter.bubble_sort(object) # bubble-method of sorting, object - list
sorter.selection_sort(object) # selection-method of sorting, object - list
sorter.insertion_sort(object) # insertion-method of sorting, object - list
sorter.heap_sort(object) # heap-method of sorting, object - list
sorter.merge_sort(object) # merge-method of sorting, object - list
All functions, beside merge_sort( ) can sort lists of strings
from sort_methods import sorter
chars = ['e', 'a', 'c', 'b']
sorter.bubble_sort(chars)
sorter.selection_sort(chars)
sorter.insertion_sort(chars)
sorter.heap_sort(chars)
# after any of this operations list 'chars' will be like this: ['a', 'b', 'c', 'e']
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sort_methods-1.0.0.tar.gz
(2.7 kB
view details)
File details
Details for the file sort_methods-1.0.0.tar.gz
.
File metadata
- Download URL: sort_methods-1.0.0.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
e63f9a049e26acac8d77a7ecc74702b829ee1ddc993b83a400633e15476aebd9
|
|
MD5 |
52f5488587031683674712d98d39711a
|
|
BLAKE2b-256 |
ef3f1b242794675841fb09cb0717a3906687c8e6e80d2a88357753f590490b43
|