This repository contains Python implementations of various data structures and algorithms These implementations are inspired by the data structures discussed on my blog: https://djob195.github.io.
The project is designed to be executed in a lightweight, reproducible environment using Docker and Docker Compose.
root/
├── structures/ # Python projects
│ └── heap_project/ # Heap implementation
├── Dockerfile # Docker image definition
├── docker-compose.yml # Docker Compose configuration
└── README.md
All code inside the structures/ folder is automatically available inside the Docker container.
No local Python installation is required.
From the root of the repository:
docker-compose buildThis will create a lightweight Python 3.11 container called: brainybits-python-enviroment.
docker-compose up -dThe container runs in daemon mode (background). To ensure it is running correctly, you can verify it with the following command:
docker psThis command will display a list of all running containers.
docker exec -it python-enviroment-container shNote: if you use windows, does not forget command winpty before command
docker.
After executing this command, you will be inside the container, within a Python environment. From there, you will be able to execute and explore all the projects included in this repository.