This module provides a command line tool designed to run various problems solved from LeetCode, complete with test cases. The tool is structured to allow easy execution and testing of different algorithmic solutions.
Prerequisites:
- Python 3.12+ is required to run the scripts.
typer
module must be installed into your environment
- Clone the repository:
git clone https://github.com/joaovbsevero/leetcode
- Navigate to the repository directory:
cd leetcode
- Install dependencies:
pip install -r requirements.txt
- Run a help command to list the available solutions:
python -m leetcode --help
- Run a solution
python -m leetcode simple_regex
Every python file inside leetcode
folder has a documentation and reference to
the original challenge in LeetCode. Also, the functions are well documented explaining
the thought process behind the execution to allow easy understanding.
There is also a VSCode configuration to automatically run the challenges and debug them if needed.
- LeetCode for providing a platform to practice coding problems.
- The open-source community for continuous support and contributions.