Skip to main content

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

Metadata

Release files for algorithms3 0.1.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for algorithms3 0.1.9
File Size Uploaded
algorithms3-0.1.9.tar.gz 209.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for algorithms3 0.1.9
File Interpreter ABI Platform
algorithms3-0.1.9-py3-none-any.whl Python 3 none any Details

Total release size: 563.8 kB

Release files / algorithms3-0.1.9.tar.gz

Download URL algorithms3-0.1.9.tar.gz
Size 209.6 kB
Tags Source
SHA-256 checksum
How to use checksums
4f8f44914bfa49a78cce5d2d58c95299abbf5cfd695b64b460b71f0ab1d5d41c
BLAKE2b-256 checksum
How to use checksums
08d2e4727c8610ddad98affccddf721222fc9b8926dabc6f6f0189646ebd41bc
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / algorithms3-0.1.9-py3-none-any.whl

Download URL algorithms3-0.1.9-py3-none-any.whl
Size 354.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f1b309529588f74b473af467551b81942a139772d411322bf416777a54bf7153
BLAKE2b-256 checksum
How to use checksums
4368f549b43a2e8012831300693ca4b93a0cfff253f6ff31082f580907d1c3ee
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.1.9 This release

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page