πŸ“¦ huangsam / leetcode

Python / Java solutions for LeetCode

β˜… 6 stars β‘‚ 1 forks πŸ‘ 6 watching
algorithmsinterviewjavaleetcodepythonsolutions
πŸ“₯ Clone https://github.com/huangsam/leetcode.git
HTTPS git clone https://github.com/huangsam/leetcode.git
SSH git clone git@github.com:huangsam/leetcode.git
CLI gh repo clone huangsam/leetcode
Samuel Huang Samuel Huang Fix docs for optimized solutions b879b8a 1 days ago πŸ“ History
πŸ“‚ main View all commits β†’
πŸ“ .github
πŸ“ config
πŸ“ gradle
πŸ“ java
πŸ“ python
πŸ“„ .editorconfig
πŸ“„ .gitignore
πŸ“„ .python-version
πŸ“„ AGENTS.md
πŸ“„ build.gradle
πŸ“„ gradlew
πŸ“„ gradlew.bat
πŸ“„ leetc.py
πŸ“„ lefthook.yml
πŸ“„ pyproject.toml
πŸ“„ README.md
πŸ“„ settings.gradle
πŸ“„ uv.lock
πŸ“„ README.md

LeetCode

GitHub Actions Workflow Status

Python / Java solutions for LeetCode problems. πŸš€

Sharpen your coding skills with these solutionsβ€”feel free to explore, learn, and contribute!

🐍 🐍 🐍 - πŸƒβ€β™‚οΈ πŸƒβ€β™‚οΈ πŸƒβ€β™‚οΈ - β˜• β˜• β˜•

The URL of each solution is embedded at the top of the file.

Getting started

To validate Python solutions:

uv run ruff check python
uv run mypy python

To validate Java solutions:

gradle build

Insights tooling

To get details on problems and progress without visiting the website, use the leetc CLI tool:

# List URLs for all solutions in the repository
uv run leetc.py urls

# Get details for a specific problem
uv run leetc.py detail $URL_FRAGMENT

# Get your overall progress summary
uv run leetc.py progress $USERNAME

Additional resources

These resources can complement learning via LeetCode: