Skip to main content

Just a few sorting algorithms, which you may find useful (or not).

Project description

Sorting with Linus

This package contains a few sorting methods which you might find useful. Check below for proper usage but here is a short list of all of them:

  1. bubble sort
  2. insertion sort
  3. quick sort
  4. selection sort

Have fun with these methods.

bubble sort

alist = [54, 26, 93, 17, 77, 31, 44, 55, 20]
print(bubbleSort(alist))

An inefficient but easy to implement sorting algorithm.

selection sort

alist = [54, 26, 93, 17, 77, 31, 44, 55, 20]
print(selectionSort(alist))

An inefficient but easy to implement sorting algorithm.

insertion sort

alist = [54, 26, 93, 17, 77, 31, 44, 55, 20]
print(insertionSort(alist))

An inefficient but easy to implement sorting algorithm.

quick sort

alist = [54,26,93,17,77,31,44,55,20]
quick_sort(alist)
print(alist)

An efficient but hard to implement sorting algorithm. Use this one!

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sorting_with_linus-0.1.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

sorting_with_linus-0.1-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file sorting_with_linus-0.1.tar.gz.

File metadata

  • Download URL: sorting_with_linus-0.1.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for sorting_with_linus-0.1.tar.gz
Algorithm Hash digest
SHA256 fd434719375d6c797c8917b586c1126eb7a73a1e1cb523c3ccfd78535a6bbfe2
MD5 5a20971796235f81babc2f6c2c644475
BLAKE2b-256 03e8256acae3c30b8f55d5de73b7ad7d60e07d0852635a74e96390a19b71d633

See more details on using hashes here.

File details

Details for the file sorting_with_linus-0.1-py3-none-any.whl.

File metadata

  • Download URL: sorting_with_linus-0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for sorting_with_linus-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 84dc3db2d7296f81e6483b18ba5f3d8dcb0d63a4648231f663751e17bf99f25f
MD5 55c00e774d520f20a7b3bf5bc1ffd42b
BLAKE2b-256 5abdecd6aa140e51fe558f0860a2b8766dff51e6704bcc937d7361f334c03f35

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page