Algorithms

Minimal examples of data structures and algorithms in Python
Alternatives To Algorithms
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Javascript Algorithms176,092417 hours ago4June 02, 2018340mitJavaScript
📝 Algorithms and data structures implemented in JavaScript with explanations and links to further readings
Java53,843
11 hours ago63mitJava
All Algorithms implemented in Java
Javascript28,441
11 hours ago49gpl-3.0JavaScript
Algorithms and Data Structures implemented in JavaScript for beginners, following best practices.
Interactive Coding Challenges27,801
19 days ago73otherPython
120+ interactive Python coding interview challenges (algorithms and data structures). Includes Anki flashcards.
C Plus Plus26,083
11 hours ago65mitC++
Collection of various algorithms in mathematics, machine learning, computer science and physics implemented in C++ for educational purposes.
Algorithms22,9641427 days ago5October 04, 2020200mitPython
Minimal examples of data structures and algorithms in Python
C16,956
12 hours ago37gpl-3.0C
Collection of various algorithms in mathematics, machine learning, computer science, physics, etc implemented in C for educational purposes.
Go13,416
17 hours ago13March 31, 202214mitGo
Algorithms and Data Structures implemented in Go for beginners, following best practices.
Awesome Java Leetcode7,852
3 years ago15Java
:crown: LeetCode of algorithms with java solution(updating).
Dsa.js Data Structures Algorithms Javascript7,009149 months ago44November 30, 20216mitJavaScript
🥞Data Structures and Algorithms explained and implemented in JavaScript + eBook
Alternatives To Algorithms
Select To Compare


Alternative Project Comparisons
Readme

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.

Popular Data Structure Projects
Popular Search Projects
Popular Computer Science Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Python
Algorithms
Search
Graph
Data Structures
Matrix
Sort
Competitive Programming