Skip to content

timthedev07-buddy/algorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python sorting/searching algorithms

The algorithms3x is a python package with 5 sorting/searching algorithms. The package would keep updating as python itself updates to higher versions.

It contains the following algorithms:

  • Selection sort
  • Bubble sort
  • Linear search
  • Binary search
  • Merge sort

Installation

If not already install pip

Install the package with pip or pip3:

pip install python-algorithms-3x

Usage

Example:

from superalgo.search import linear_search
linear_search([1, 2, 3], 4)

Output:

False
from superalgo.sort import merge_sort
print(merge_sort([4, 1, 2, 3]))

Output:

[1, 2, 3, 4]

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages