Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Data Structures and Algorithms using Python

Project description

Data Structures and Algorithms

This repository contains my implementations of data structures and algorithms using Python 3. Most of the algorithm questions are taken from LeetCode. This is a work in progress.

Install

You can use this as an API in your code as follows:

$ pip3 install algorithms3

An example of running an algorithm:

#Check if a string containing brackets is valid or not

from algorithms.stack import validate_parantheses

if __name__ == '__main__':
    test = validate_parantheses('()[]')
    print(test)

If an algorithm is listed in this repository but is not in the pip package, it means that I have not uploaded the latest version. I will be doing that once a week.

Uninstall

If you want to uninstall, simply run:

$pip3 uninstall algorithms3

Tests

I have written basic tests for most of the modules. To run all the tests at once run the following from the base directory of the project:

$python3 -m unittest discover tests

Progress

Data Structures : 13
Algorithms         : 482

List of Implementations

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for algorithms3, version 0.1.9
Filename, size File type Python version Upload date Hashes
Filename, size algorithms3-0.1.9-py3-none-any.whl (354.2 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size algorithms3-0.1.9.tar.gz (209.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page