- This repository contains implementation for Data Structures and Algorithms in Python programming language.
- Goal of this implementation is to use language specific features like Dataclasses, Generators, Function tools, Closures etc.
- This implementation is based on Udemy course Python Data Structures & Algorithms + LEETCODE Exercises by Scott Barrett.
Note:
Not optimized for production environment.
This repository covers following data structures and algorithms:
- Python: Programming language (version >= 3.12).
- Libraries:
- prettytable: Python library used for displaying Hash Table.
- networkx: Python library used for displaying Graphs.
Clone this repository and traverse to the project folder using below commands:
git clone https://github.com/DheemanthBhat/python-data-structures-algorithms.git
cd python-data-structures-algorithms
Create and activate virtual environment.
Why virtual environment?
This project is using libraries for displaying data structures. These libraries have dependencies that can conflict with your local python setup. To avoid any unintended behavior install the libraries and their dependencies in a Virtual environment.
python -m venv .venv
.venv\Scripts\activate
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt