Skip to content

LeetCode Solutions in Python | LeetCode-ის ამოხსნები Python-ზე

Notifications You must be signed in to change notification settings

zsichina/LeetCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode Algorithms Project

This project contains a collection of algorithms to solve various LeetCode problems. The codebase is maintained with high standards of code quality, and static analysis tools are used to ensure the code adheres to these standards.

Prerequisites

  • Python 3.9 or higher
  • Docker (if you want to run the analysis in a Docker container)

Setup

Virtual Environment

  1. Create a virtual environment:

    python -m venv .venv
  2. Activate the virtual environment:

  • On macOS and Linux:

    source .venv/bin/activate
  • On Windows:

    .venv\Scripts\activate
  1. Install dependencies:

    pip install -r requirements.txt

Docker

  1. Build the Docker image:

    docker build -t static-analysis .

Usage

Running Static Analysis

To run the static analysis script, use the following command:

  • With Virtual Environment:

    ./static_analysis.sh
  • With Docker:

    1. Go inside the container
    docker run --rm -it -v $(pwd)/algorithms:/usr/src/app/algorithms static-analysis bash
    1. run:
    ./static_analysis.sh

Script Details

The static_analysis.sh script performs the following actions:

  • Checks if any errors were found during the static analysis.
  • Outputs the results of the static analysis.

Contributing

Feel free to submit issues or pull requests if you find any bugs or have suggestions for improvements.

License

This project is licensed under the MIT License.

About

LeetCode Solutions in Python | LeetCode-ის ამოხსნები Python-ზე

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages