

Also from Kynth Studios


Also from Kynth Studios


Also from Kynth Studios
1# CLAUDE.md23This file provides guidance to AI coding assistants (Claude Code, Cursor, OpenCode, etc.) when working with code in this repository.45## Repository Overview67This is [doocs/leetcode](https://github.com/doocs/leetcode) — a large collection of LeetCode, Coding Interviews, and other algorithm problem solutions, each implemented in multiple programming languages (Python, Java, C++, Go, TypeScript, Rust, C#, PHP, JavaScript, Kotlin, Swift, Scala, Ruby, Nim, Shell, SQL).89## Directory Structure1011- **`solution/`** — Main LeetCode solutions, organized by problem number ranges (e.g., `0000-0099/`, `0100-0199/`). Each problem has its own directory (e.g., `0000-0099/0001.Two Sum/`) containing:12 - `README.md` / `README_EN.md` — Chinese/English problem descriptions13 - `Solution.{py,java,cpp,go,ts,cs,rs,...}` — Solution files in each language14 - Follow standard LeetCode class-based structure: `class Solution` with the method1516- **`lcof/`** — 剑指 Offer (Coding Interviews, 2nd Edition) — problem directories named with Chinese titles17- **`lcof2/`** — 剑指 Offer 专项突击版 (Coding Interviews, Special Edition)18- **`lcci/`** — 程序员面试金典 (Cracking the Coding Interview, 6th Edition) — `01.01.Is Unique` format19- **`lcp/`** — LeetCode Contest Problems20- **`lcs/`** — LeetCode Contest (separate series)21- **`basic/`** — Basic algorithm implementations (sorting algorithms like BubbleSort, QuickSort, etc.)2223## Development Workflow2425### Adding a New Solution26271. Create a new problem directory under the appropriate parent (e.g., `solution/0000-0099/0042.My Problem/`)282. Add `Solution.py`, `Solution.java`, `Solution.cpp`, `Solution.go`, `Solution.ts`, `Solution.rs`, `Solution.cs`, etc.293. Add `README.md` and `README_EN.md` with problem description and solution explanations304. Follow the existing templates in `solution/template.md` for README formatting315. All language solutions must implement the same algorithm logic3233### Code Formatting3435All code must be formatted before committing. The lint-staged hooks run automatically on pre-commit:3637```bash38# JavaScript/TypeScript/PHP/SQL/Markdown39npx prettier --write "**/*.{js,ts,php,sql,md}"4041# Python42py -m black -S <file>4344# C/C++/Java45npx clang-format -i --style=file <file>4647# Go48gofmt -w <file>4950# Rust51rustfmt <file>52```5354Or run the full formatting script:5556```bash57python run_format.py58```5960### Installation6162```bash63npm install # Installs dev dependencies and triggers pip install for Python deps64```6566### CI/CD6768GitHub Actions automatically run:6970- **clang-format** lint on C/C++/Java files71- **Black** lint on Python files72- **Prettier** on JS/TS/PHP/SQL/Markdown files73- **Deploy** workflow for the documentation site7475## Solution Patterns7677- Python solutions use `List` from typing (imported implicitly by LeetCode environment)78- Go solutions include `package main` header (added/removed by formatting script)79- PHP solutions include `<?php` header (added/removed by formatting script)80- SQL solutions uppercase built-in function names (handled by `run_format.py`)81- C# solutions contributed by [@kfstorm](https://github.com/kfstorm)8283## Key Conventions8485- Problem directories follow naming convention: `{NUMBER}.{Problem Name with Spaces}`86- Each solution file is named `Solution.{ext}` (capital S)87- README files use special HTML comment markers for templating (e.g., `<!-- problem:start -->`, `<!-- solution:start -->`)88- Solutions should match the problem's required class/method signature from LeetCode89
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| microsoft/playwrightCLAUDE.md · 95k | CLAUDE.md | buildtestlint-formatstyle+7 | 100/100 | 7 days ago | |
| bagisto/bagistoCLAUDE.md · 28k | CLAUDE.md | setupbuildteststyle+5 | 100/100 | 7 days ago | |
| nimbalyst/nimbalystpackages/android/CLAUDE.md · 1.5k | CLAUDE.md | setupbuildstylearch+2 | 100/100 | 14 days ago | |
| dotCMS/corecore-web/CLAUDE.md · 949 | CLAUDE.md | teststylearchtesting-strategy+3 | 100/100 | 14 days ago | |
| tphakala/birdnet-goCLAUDE.md · 1.6k | CLAUDE.md | buildtestlint-formatstyle+8 | 100/100 | today | |
| Adit-Jain-srm/NightmareNetCLAUDE.md · 46 | CLAUDE.md | buildtestlint-formatstyle+6 | 100/100 | 14 days ago | |
| tyrchen/geektime-bootcamp-aiw7/genslides/backend/CLAUDE.md · 230 | CLAUDE.md | testlint-formatstylearch+6 | 100/100 | 9 days ago | |
| livewire/livewireCLAUDE.md · 24k | CLAUDE.md | setupbuildteststyle+4 | 100/100 | 14 days ago |
A badge carrying the measured quality of the strongest agent config file in this repository, out of 100. It reads from this index every time somebody loads your page, so it changes when the measurement changes and there is nothing to keep up to date. Free, no account, and the value is not something you or we can set by hand.
[](https://rulestack.kynth.studio/configs/doocs-leetcode-claude)Would rather not hotlink us? Every badge is also served in shields.io’s endpoint schema, so shields renders the image and your readers never talk to our domain:
Published by Toolproof, the masthead over this index and eight others. The method behind the number is at toolproof.kynth.studio/methodology, and the whole thing is readable as JSON with no key at /api.