Skip to main content

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.

Source Distribution

algorithms3-0.1.9.tar.gz (209.6 kB view details)

Uploaded Source

Built Distribution

algorithms3-0.1.9-py3-none-any.whl (354.2 kB view details)

Uploaded Python 3

File details

Details for the file algorithms3-0.1.9.tar.gz.

File metadata

  • Download URL: algorithms3-0.1.9.tar.gz
  • Upload date:
  • Size: 209.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.9.1 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.2

File hashes

Hashes for algorithms3-0.1.9.tar.gz
Algorithm Hash digest
SHA256 4f8f44914bfa49a78cce5d2d58c95299abbf5cfd695b64b460b71f0ab1d5d41c
MD5 3ae67bc1a53cc857a313a1d636b79f79
BLAKE2b-256 08d2e4727c8610ddad98affccddf721222fc9b8926dabc6f6f0189646ebd41bc

See more details on using hashes here.

File details

Details for the file algorithms3-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: algorithms3-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 354.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.9.1 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.2

File hashes

Hashes for algorithms3-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 f1b309529588f74b473af467551b81942a139772d411322bf416777a54bf7153
MD5 9854b98bf76ddece1311d8b1bb58277f
BLAKE2b-256 4368f549b43a2e8012831300693ca4b93a0cfff253f6ff31082f580907d1c3ee

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page