Skip to content

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.

Notifications You must be signed in to change notification settings

joaovbsevero/leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode Solutions Command Line Tool

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.

Getting Started:

Prerequisites:

  • Python 3.12+ is required to run the scripts.
  • typer module must be installed into your environment

Installation:

  1. Clone the repository:
git clone https://github.com/joaovbsevero/leetcode
  1. Navigate to the repository directory:
cd leetcode
  1. Install dependencies:
pip install -r requirements.txt
  1. Run a help command to list the available solutions:
python -m leetcode --help
  1. Run a solution
python -m leetcode simple_regex

Structure

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.

Acknowledgments:

  • LeetCode for providing a platform to practice coding problems.
  • The open-source community for continuous support and contributions.

About

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.

Topics

Resources

Stars

Watchers

Forks

Languages