Skip to content

Minimal examples of data structures and algorithms in Python

License

Notifications You must be signed in to change notification settings

cpatel321/algorithms

This branch is 1 commit ahead of keon/algorithms:master.

Folders and files

NameName
Last commit message
Last commit date
Feb 16, 2022
Feb 5, 2024
Mar 2, 2022
Feb 6, 2025
Apr 28, 2018
Jan 24, 2021
Oct 16, 2019
Jun 25, 2017
Mar 8, 2023
May 31, 2017
Jun 12, 2018
Feb 5, 2024
Jun 21, 2018
Mar 2, 2022
Oct 16, 2019
Jul 29, 2019

Repository files navigation

PyPI version Open Source Helpers Build Status Coverage Status

Pythonic Data Structures and Algorithms

Minimal and clean example implementations of data structures and algorithms in Python 3.

Contributing

Thanks for your interest in contributing! There are many ways to contribute to this project. Get started here

Tests

Use unittest

For running all tests write down:

$ python3 -m unittest discover tests

For running some specific tests you can do this as following (Ex: sort):

$ python3 -m unittest tests.test_sort

Use pytest

For running all tests write down:

$ python3 -m pytest tests

Install

If you want to use the API algorithms in your code, it is as simple as:

$ pip3 install algorithms

You can test by creating a python file: (Ex: use merge_sort in sort)

from algorithms.sort import merge_sort

if __name__ == "__main__":
    my_list = [1, 8, 3, 5, 6]
    my_list = merge_sort(my_list)
    print(my_list)

Uninstall

If you want to uninstall algorithms, it is as simple as:

$ pip3 uninstall -y algorithms

List of Implementations

Contributors

Thanks to all the contributors who helped in building the repo.

About

Minimal examples of data structures and algorithms in Python

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%