A Python module for learning all major algorithms
Python
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 341 commits behind OmkarPathak:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
docs
pygorithm
tests
.gitignore
LICENSE
README.rst
setup.py

README.rst

Pygorithm

Documentation Status Python 3.6
A Python module to learn all the major algorithms on the go!
Purely for educational purposes

Features

  • Super easy to use
  • A very easy to understand Documentation
  • Get the code right in your editor
  • Get time complexities on the go

Installation

  • Just fire the following command in your terminal:
pip3 install pygorithm
  • It's that easy. If you are using Python 2.7 use pip instead. Depending on your
    permissions, you might need to sudo before installing

Quick Start Guide

  • To sort your list
from pygorithm.sorting import bubble_sort
myList = [12, 4, 3, 5, 13, 1, 17, 19, 15]
sortedList = bubble_sort.sort(myList)
print(sortedList)
  • To get the code for function used
from pygorithm.sorting import bubble_sort
code = bubble_sort.get_code()
print(code)
  • To get the time complexity of an algorithm
from pygorithm.sorting import bubble_sort
time_complexity = bubble_sort.time_complexities()
print(time_complexity)