This repository contains implementations of common algorithms in Python, categorized into different modules based on their type (e.g., sorting, searching, etc.). The repository also includes corresponding tests using pytest.
-
Clone the repository: git clone https://github.com/yourusername/common_algorithms.git
-
Change to the repository directory:
- cd common_algorithms
-
Install the required dependencies:
- pip install -r requirements.txt
NOTE: It's recommended to use a virtual environment to manage dependencies.
- Run the tests using pytest:
Contributions are welcome! If you'd like to add more algorithms or improve existing ones, please follow these steps:
- Fork the repository.
- Create a new branch for your changes.
- Implement the new algorithm or make changes to existing ones.
- Add corresponding tests.
- Ensure all tests pass.
- Commit your changes and open a pull request.