All Projects → keon → Algorithms

keon / Algorithms

Licence: mit
Minimal examples of data structures and algorithms in Python

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Algorithms

Algorithms
CLRS study. Codes are written with golang.
Stars: ✭ 482 (-97.6%)
Mutual labels:  algorithm, algorithms, graph, tree, sort
Dsa.js Data Structures Algorithms Javascript
🥞Data Structures and Algorithms explained and implemented in JavaScript + eBook
Stars: ✭ 6,251 (-68.94%)
Mutual labels:  algorithm, algorithms, graph, search, tree
Competitive coding
This repository contains some useful codes, techniques, algorithms and problem solutions helpful in Competitive Coding.
Stars: ✭ 393 (-98.05%)
Mutual labels:  competitive-programming, algorithm, algorithms, graph
Leetcode
High-quality LeetCode solutions
Stars: ✭ 178 (-99.12%)
Mutual labels:  algorithm, graph, tree, data-structure
Algorithm
The repository algorithms implemented on the Go
Stars: ✭ 163 (-99.19%)
Mutual labels:  algorithm, algorithms, search, sort
Interview Questions
List of all the Interview questions practiced from online resources and books
Stars: ✭ 187 (-99.07%)
Mutual labels:  algorithm, graph, tree, sort
Algodeck
An Open-Source Collection of 200+ Algorithmic Flash Cards to Help you Preparing your Algorithm & Data Structure Interview 💯
Stars: ✭ 4,441 (-77.93%)
Mutual labels:  algorithm, algorithms, graph, tree
Java Algorithms Implementation
Algorithms and Data Structures implemented in Java
Stars: ✭ 3,927 (-80.49%)
Mutual labels:  algorithm, graph, tree, sort
Data Structures
Common data structures and algorithms implemented in JavaScript
Stars: ✭ 139 (-99.31%)
Mutual labels:  algorithm, algorithms, graph, tree
Learningmasteringalgorithms C
Mastering Algorithms with C 《算法精解:C语言描述》源码及Xcode工程、Linux工程
Stars: ✭ 615 (-96.94%)
Mutual labels:  algorithm, graph, tree, sort
Java Ds Algorithms
Data Structures and Algorithms in Java
Stars: ✭ 125 (-99.38%)
Mutual labels:  algorithm, graph, tree, sort
C Plus Plus
Collection of various algorithms in mathematics, machine learning, computer science and physics implemented in C++ for educational purposes.
Stars: ✭ 17,151 (-14.77%)
Mutual labels:  algorithm, algorithms, search, sort
Rrt Algorithms
n-dimensional RRT, RRT* (RRT-Star)
Stars: ✭ 195 (-99.03%)
Mutual labels:  algorithm, algorithms, tree
Competitive Programming
📌 📚 Solution of competitive programming problems, code templates, Data Structures and Algorithms, hackathons, interviews and much more.
Stars: ✭ 496 (-97.54%)
Mutual labels:  competitive-programming, algorithm, algorithms
Usaco Guide
A free collection of curated, high-quality resources to take you from Bronze to Platinum and beyond.
Stars: ✭ 439 (-97.82%)
Mutual labels:  competitive-programming, algorithm, data-structure
Interactive Coding Challenges
120+ interactive Python coding interview challenges (algorithms and data structures). Includes Anki flashcards.
Stars: ✭ 24,317 (+20.84%)
Mutual labels:  competitive-programming, algorithm, data-structure
Awesome Competitive Programming
💎 A curated list of awesome Competitive Programming, Algorithm and Data Structure resources
Stars: ✭ 9,119 (-54.68%)
Mutual labels:  competitive-programming, algorithm, data-structure
Algorithms
Solved algorithms and data structures problems in many languages
Stars: ✭ 1,021 (-94.93%)
Mutual labels:  competitive-programming, algorithm, graph
Get better at cp in 2 months
This contains the curriculum that I will follow to get better at Competitive Programming in 2 months.
Stars: ✭ 627 (-96.88%)
Mutual labels:  competitive-programming, algorithm, algorithms
Usaco
General Resources for Competitive Programming
Stars: ✭ 1,152 (-94.28%)
Mutual labels:  competitive-programming, algorithm, data-structure

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].