a library for lazy people who are too lazy to write their own sorting
Project description
a library for lazy people who are too lazy to write their own sorting
there are sorting:
-
1 bubble sorting
import arSort
array = [0, 6, 8, 4]
sort = arSort.Sort(array)
print(sort.bubbleSort("<")) #bubble sorting from smaller to larger
print(sort.bubbleSort(">")) #bubble sorting of more to less
input:
[0, 4, 6, 8]
[8, 6, 4, 0]
-
2 sorting by shaker
import arSort
array = [0, 6, 8, 4]
sort = arSort.Sort(array)
print(sort.shakerSort("<")) #sorting the shaker from smaller to larger
print(sort.shakerSort(">")) #sorting the shaker from bigger to smaller
input:
[0, 4, 6, 8]
[8, 6, 4, 0]
-
3 sorting comb
import arSort
array = [0, 6, 8, 4]
sort = arSort.Sort(array)
print(sort.hairbrushSort("<")) #sorting with a comb from smaller to larger
print(sort.hairbrushSort(">")) #sorting with a comb from more to less
input:
[0, 4, 6, 8]
[8, 6, 4, 0]
-
4 sorting by inserts
import arSort
array = [0, 6, 8, 4]
sort = arSort.Sort(array)
print(sort.insertsSort("<")) #sorting by inserts from smaller to larger
print(sort.insertsSort(">")) #sorting by inserts from larger to smaller
input:
[0, 4, 6, 8]
[8, 6, 4, 0]
-
5 sorting dwarves
import arSort
array = [0, 6, 8, 4]
sort = arSort.Sort(array)
print(sort.dwarvesSort("<")) #sorting dwarves from smaller to larger
print(sort.dwarvesSort(">")) #sorting dwarves from bigger to smaller
input:
[0, 4, 6, 8]
[8, 6, 4, 0]
-
6 sorting the bongo clown (insane)
import arSort
array = [0, 6, 8, 4]
sort = arSort.Sort(array)
#we strongly advise against doing this,
#because the worst indicator of the time of this sorting is infinity of seconds.
print(sort.bogoSort("<")) #sorting the bongo clown from smaller to larger
print(sort.bogoSort(">")) #sorting the bongo clown from bigger to smaller
input:
[0, 4, 6, 8]
[8, 6, 4, 0]
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
arSort-0.1.tar.gz
(2.4 kB
view details)
Built Distribution
arSort-0.1-py3-none-any.whl
(2.4 kB
view details)
File details
Details for the file arSort-0.1.tar.gz
.
File metadata
- Download URL: arSort-0.1.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f981ffe91931ef2c9a858deb92ff570aaf5fe92f74ded519f00b63e062322d8 |
|
MD5 | 4ab4efd3de77be54d8cea18e03527e28 |
|
BLAKE2b-256 | 7d6bf9babfc3d3ba853b1ada7bdb78ee8acb169fdca24f17841e7abdebcfff3a |
File details
Details for the file arSort-0.1-py3-none-any.whl
.
File metadata
- Download URL: arSort-0.1-py3-none-any.whl
- Upload date:
- Size: 2.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9443d8e5f0fb376470b35ba4df1d59f575f68031d5686799008f79b408cad88 |
|
MD5 | 063622831b8d5776baac267bdc5fc340 |
|
BLAKE2b-256 | 083e462269da3690345754161ed6c2bbad1a54496e8860fcd6bd59ff42a17b28 |