Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/0xpuddi/algorithms
A collection of algos written in python, detailed with time and space complexity
https://github.com/0xpuddi/algorithms
algorithms data-structures python3
Last synced: 20 days ago
JSON representation
A collection of algos written in python, detailed with time and space complexity
- Host: GitHub
- URL: https://github.com/0xpuddi/algorithms
- Owner: 0xPuddi
- License: mit
- Created: 2024-02-22T14:42:34.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-06-28T14:17:12.000Z (7 months ago)
- Last Synced: 2024-11-07T04:15:30.909Z (2 months ago)
- Topics: algorithms, data-structures, python3
- Language: Python
- Homepage:
- Size: 97.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Algorithms
This is a collection of algos written in python, detailed with time and space complexity
## Usage
To run any algorithm simply,Clone the repo:
```sh
git clone [email protected]:Puddi1/Algorithms.git ./algos
cd algos
```Create a python3 environment for the project:
```sh
python3 -m venv .myvenv
```Activate it:
```sh
source .myvenv/bin/activate
```Install needed packages:
```sh
pip install -r requirements.txt
```Finally, run an algorithm from top level directory as a module:
```sh
python3 -m src.algorithms.
```Or a data strcture:
```sh
python3 -m src.data_structures.<script name>
```Running files from top level directory as a module is needed as there are both algorithms and data structures, which are two submodules, that import each others.
To exit the environment:
```sh
deactivate
```## Todo
The repo really needs some cleaning