MCPcopy
hub / github.com/doocs/leetcode

github.com/doocs/leetcode @v0.3.0 sqlite

repository ↗ · DeepWiki ↗ · release v0.3.0 ↗
33,256 symbols 60,067 edges 15,566 files 1,278 documented · 4%
README

LeetCode-GitHub-Doocs

open-source-organization languages LICENSE

stars forks

Introduction

This project contains solutions for problems from LeetCode, "Coding Interviews (2nd Edition)", "Coding Interviews (Special Edition)", "Cracking the Coding Interview (6th Edition)", etc. All solutions are implemented in multiple programming languages, including but not limited to: Java, Python, C++, Go, TypeScript, Rust. We are working hard to update, welcome to Star 🌟 and follow this project to get the latest updates.

中文文档

Site

https://doocs.github.io/leetcode/en

Solutions

JavaScript & Database Practice

Topics

1. Basic Algorithms

2. Data Structures

3. Search

4. Dynamic Programming(DP)

5. Advanced Data Structures

Extension points exported contracts — how you extend this code

ITreapMultiSet (Interface)
(no doc)
solution/0400-0499/0480.Sliding Window Median/Solution2.ts
ITreapMultiSet (Interface)
(no doc)
solution/3100-3199/3102.Minimize Manhattan Distances/Solution.ts
Date (Interface)
(no doc)
solution/2700-2799/2758.Next Day/Solution.ts
Array (Interface)
(no doc)
solution/2600-2699/2624.Snail Traversal/Solution.ts
ITreapMultiSet (Interface)
(no doc)
solution/3000-3099/3013.Divide an Array Into Subarrays With Minimum Cost II/Solution.ts
ITreapMultiSet (Interface)
(no doc)
solution/1400-1499/1438.Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit/Solution.ts
pair (Interface)
(no doc)
solution/2500-2599/2593.Find Score of an Array After Marking All Elements/Solution.ts
ITreapMultiSet (Interface)
(no doc)
lcp/LCP 24. 数字游戏/Solution2.ts

Core symbols most depended-on inside this repo

max
called by 1499
solution/0700-0799/0749.Contain Virus/Solution.java
min
called by 1277
solution/1700-1799/1787.Make the XOR of All Segments Equal to Zero/Solution.java
max
called by 1184
solution/1500-1599/1563.Stone Game V/Solution.py
min
called by 1152
solution/1700-1799/1761.Minimum Degree of a Connected Trio in a Graph/Solution.py
append
called by 1125
solution/1600-1699/1622.Fancy Sequence/Solution.py
length
called by 1076
solution/0800-0899/0850.Rectangle Area II/Solution.py
append
called by 711
solution/0700-0799/0716.Max Stack/Solution.py
max
called by 560
solution/2200-2299/2213.Longest Substring of One Repeating Character/Solution.py

Shape

Method 14,793
Function 9,084
Class 8,831
Struct 475
TypeAlias 57
Interface 16

Languages

Java31%
Python31%
TypeScript21%
Go18%

Modules by API surface

solution/2300-2399/2336.Smallest Number in Infinite Set/Solution.ts68 symbols
solution/2600-2699/2612.Minimum Reverse Operations/Solution.ts64 symbols
solution/2400-2499/2454.Next Greater Element IV/Solution.ts64 symbols
solution/1800-1899/1878.Get Biggest Three Rhombus Sums in a Grid/Solution.ts64 symbols
solution/0300-0399/0363.Max Sum of Rectangle No Larger Than K/Solution.ts64 symbols
solution/0200-0299/0220.Contains Duplicate III/Solution.ts64 symbols
lcof2/剑指 Offer II 057. 值和下标之差都在给定的范围内/Solution.ts64 symbols
solution/0700-0799/0729.My Calendar I/Solution.ts52 symbols
solution/0800-0899/0855.Exam Room/Solution.ts51 symbols
solution/1100-1199/1172.Dinner Plate Stacks/Solution.ts49 symbols
solution/2300-2399/2349.Design a Number Container System/Solution.ts48 symbols
solution/2800-2899/2817.Minimum Absolute Difference Between Elements With Constraint/Solution.ts45 symbols

Dependencies from manifests, versioned

@commitlint/cli19.3.0 · 1×
@commitlint/config-conventional19.2.2 · 1×
@prettier/plugin-php0.22.2 · 1×
clang-format1.8.0 · 1×
husky9.0.1 · 1×
lint-staged15.2.7 · 1×
prettier3.3.2 · 1×
prettier-plugin-sql-cst0.11.5 · 1×
Requests2.32.0 · 1×
black24.3.0 · 1×

For agents

$ claude mcp add leetcode \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact