Skip to content

Repository files navigation

LC Templates

My personal summerized LeetCode Python templates.

Python Documentation Twitter Follow LeetCode user cascandaliato

TODO

  • Binary Search
  • Prefix Sum
  • Intervals

Building Documentation Locally

This project uses Sphinx for documentation generation. To build the documentation locally:

1. Set up the virtual environment

Create and activate a virtual environment:

python3 -m venv env
source env/bin/activate  # On Windows: env\Scripts\activate

2. Install dependencies

Install the required packages from the documentation requirements:

pip install -r docs/requirements.txt

3. Build the documentation

Navigate to the docs directory and build:

cd docs
make html

The generated HTML documentation will be available in docs/build/html/. Open docs/build/html/index.html in your browser to view it.

Alternative: Using sphinx-build directly

You can also use sphinx-build directly:

cd docs
sphinx-build -b html source build/html

Clean build

To clean the build directory and rebuild from scratch:

cd docs
make clean
make html

About

Python Templates for LeetCode

Topics

Resources

Stars

23 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages