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
#Returns bool value
from algorithms.stack import is_valid
if __name__ == '__main__':
test = is_valid('()[]')
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:
$python3 -m unittest discover tests
List of Implementations
Project details
Release history Release notifications | RSS feed
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.6.tar.gz
(14.9 kB
view hashes)
Built Distribution
Close
Hashes for algorithms3-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cdeea97ad34d75dcfbf11985e0d47a6a0dc456a2f236a8e62ebaad176e83402 |
|
MD5 | da46a95657896a2236bfe84bfda37621 |
|
BLAKE2b-256 | fdaefefd2e87803796125191630652739ef0b3f22bdd5b61dd8371a8e4d56990 |