Skip to content

feat: update solutions#5211

Merged
yanglbme merged 4 commits into
mainfrom
dev
May 18, 2026
Merged

feat: update solutions#5211
yanglbme merged 4 commits into
mainfrom
dev

Conversation

@yanglbme
Copy link
Copy Markdown
Member

No description provided.

yanglbme and others added 2 commits May 18, 2026 11:00
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 18, 2026 03:07
@idoocs idoocs added core team Issues or pull requests from core team json Issues or Pull requests relate to .json files py Issues or Pull requests relate to .py code rs Issues or Pull requests relate to .rs code txt labels May 18, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Images automagically compressed by Calibre's image-actions

Compression reduced images by 83.2%, saving 772.1 KB.

Filename Before After Improvement Visual comparison
solution/3900-3999/3933.Largest Local Values in a Matrix II/images/chatgpt-image-may-14-2026-01_53_19-am.png 928.2 KB 156.1 KB 83.2% View diff

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates LeetCode solution metadata, adds contest 502 problem pages/solutions, refreshes tooling dependencies, and applies Rust formatting cleanup across many existing solution files.

Changes:

  • Adds problem 3931 implementations and documentation; adds placeholder docs for 3932–3934.
  • Updates main solution/contest indexes for Weekly Contests 500–502.
  • Adjusts Python/tooling setup and applies rustfmt-style formatting to Rust solutions.

Reviewed changes

Copilot reviewed 57 out of 64 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
solution/README.md Updates Chinese solution index entries for contests 500–502.
solution/README_EN.md Updates English solution index entries for contests 500–502.
solution/main.py Expands contest fetch ranges and changes cached-question refresh behavior.
solution/CONTEST_README.md Adds Chinese contest sections for Weekly 500–502.
solution/CONTEST_README_EN.md Adds English contest sections for Weekly 500–502.
solution/3900-3999/3931.Check Adjacent Digit Differences/README.md Adds Chinese statement and solution for 3931.
solution/3900-3999/3931.Check Adjacent Digit Differences/README_EN.md Adds English statement and solution for 3931.
solution/3900-3999/3931.Check Adjacent Digit Differences/Solution.py Adds Python solution for 3931.
solution/3900-3999/3931.Check Adjacent Digit Differences/Solution.java Adds Java solution for 3931.
solution/3900-3999/3931.Check Adjacent Digit Differences/Solution.cpp Adds C++ solution for 3931.
solution/3900-3999/3931.Check Adjacent Digit Differences/Solution.go Adds Go solution for 3931.
solution/3900-3999/3931.Check Adjacent Digit Differences/Solution.ts Adds TypeScript solution for 3931.
solution/3900-3999/3932.Count K-th Roots in a Range/README.md Adds Chinese problem page for 3932.
solution/3900-3999/3932.Count K-th Roots in a Range/README_EN.md Adds English problem page for 3932.
solution/3900-3999/3933.Largest Local Values in a Matrix II/README.md Adds Chinese problem page for 3933.
solution/3900-3999/3933.Largest Local Values in a Matrix II/README_EN.md Adds English problem page for 3933.
solution/3900-3999/3934.Smallest Unique Subarray/README.md Adds Chinese problem page for 3934.
solution/3900-3999/3934.Smallest Unique Subarray/README_EN.md Adds English problem page for 3934.
package.json Adds postinstall and changes Python lint-staged command.
requirements.txt Updates Python dependency list.
lcp/main.py Switches warning suppression to direct urllib3 import.
solution/3700-3799/3761.Minimum Absolute Distance Between Mirror Pairs/Solution.rs Rust formatting only.
solution/3700-3799/3741.Minimum Distance Between Three Equal Elements II/Solution.rs Rust formatting only.
solution/3700-3799/3740.Minimum Distance Between Three Equal Elements I/Solution.rs Rust formatting only.
solution/3600-3699/3666.Minimum Operations to Equalize Binary String/Solution.rs Rust formatting only.
solution/3600-3699/3643.Flip Square Submatrix Vertically/Solution.rs Rust formatting only.
solution/3600-3699/3606.Coupon Code Validator/Solution.rs Rust formatting only.
solution/3500-3599/3574.Maximize Subarray GCD Score/Solution.rs Rust formatting only.
solution/3500-3599/3508.Implement Router/Solution.rs Rust import ordering only.
solution/3400-3499/3433.Count Mentions Per User/Solution.rs Rust whitespace cleanup only.
solution/3300-3399/3347.Maximum Frequency of an Element After Performing Operations II/Solution.rs Rust import ordering only.
solution/3200-3299/3292.Minimum Number of Valid Strings to Form Target II/Solution.rs Rust import ordering only.
solution/3200-3299/3219.Minimum Cost for Cutting Cake II/Solution.rs Rust formatting only.
solution/3200-3299/3218.Minimum Cost for Cutting Cake I/Solution.rs Rust formatting only.
solution/3200-3299/3213.Construct String with Minimum Cost/Solution.rs Rust import ordering and formatting only.
solution/3200-3299/3212.Count Submatrices With Equal Frequency of X and Y/Solution.rs Rust formatting only.
solution/3100-3199/3187.Peaks in Array/Solution.rs Rust formatting only.
solution/3100-3199/3130.Find All Possible Stable Binary Arrays II/Solution.rs Rust formatting only.
solution/3100-3199/3129.Find All Possible Stable Binary Arrays I/Solution.rs Rust formatting only.
solution/3000-3099/3070.Count Submatrices with Top-Left Element and Sum Less Than k/Solution.rs Rust formatting only.
solution/3000-3099/3013.Divide an Array Into Subarrays With Minimum Cost II/Solution.rs Rust formatting only.
solution/2900-2999/2977.Minimum Cost to Convert String II/Solution.rs Rust formatting only.
solution/2800-2899/2872.Maximum Number of K-Divisible Components/Solution.rs Rust formatting only.
solution/2700-2799/2770.Maximum Number of Jumps to Reach the Last Index/Solution.rs Rust formatting only.
solution/2700-2799/2751.Robot Collisions/Solution.rs Rust formatting only.
solution/2500-2599/2515.Shortest Distance to Target String in a Circular Array/Solution.rs Rust formatting only.
solution/1800-1899/1878.Get Biggest Three Rhombus Sums in a Grid/Solution.rs Rust formatting only.
solution/1600-1699/1689.Partitioning Into Minimum Number Of Deci-Binary Numbers/Solution.rs Rust formatting only.
solution/1500-1599/1545.Find Kth Bit in Nth Binary String/Solution.rs Rust formatting only.
solution/1300-1399/1390.Four Divisors/Solution.rs Rust formatting only.
solution/1300-1399/1339.Maximum Product of Splitted Binary Tree/Solution.rs Rust import ordering and formatting only.
solution/1200-1299/1297.Maximum Number of Occurrences of a Substring/Solution2.rs Rust formatting only.
solution/1100-1199/1161.Maximum Level Sum of a Binary Tree/Solution.rs Rust import ordering only.
solution/1000-1099/1022.Sum of Root To Leaf Binary Numbers/Solution.rs Rust import ordering only.
solution/0800-0899/0877.Stone Game/Solution2.rs Rust formatting only.
solution/0800-0899/0877.Stone Game/Solution.rs Rust formatting cleanup.
solution/0800-0899/0865.Smallest Subtree with all the Deepest Nodes/Solution.rs Rust formatting only.
solution/0700-0799/0799.Champagne Tower/Solution2.rs Rust formatting/newline cleanup.
solution/0700-0799/0799.Champagne Tower/Solution.rs Rust formatting/newline cleanup.
solution/0000-0099/0085.Maximal Rectangle/Solution.rs Rust formatting only.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread package.json
"lint-staged": {
"*.{js,ts,php,sql,md}": "prettier --write",
"*.py": "black -S",
"*.py": "py -m black -S",
Comment thread package.json
@@ -1,5 +1,6 @@
{
"scripts": {
"postinstall": "pip install -r requirements.txt",
Comment on lines +83 to +105
#### Python3

```python

```

#### Java

```java

```

#### C++

```cpp

```

#### Go

```go

```
Comment on lines +75 to +97
#### Python3

```python

```

#### Java

```java

```

#### C++

```cpp

```

#### Go

```go

```
Comment on lines +113 to +135
#### Python3

```python

```

#### Java

```java

```

#### C++

```cpp

```

#### Go

```go

```
Comment on lines +111 to +133
#### Python3

```python

```

#### Java

```java

```

#### C++

```cpp

```

#### Go

```go

```
Comment on lines +110 to +132
#### Python3

```python

```

#### Java

```java

```

#### C++

```cpp

```

#### Go

```go

```
Comment on lines +106 to +128
#### Python3

```python

```

#### Java

```java

```

#### C++

```cpp

```

#### Go

```go

```
Comment thread solution/main.py
slug = q["titleSlug"]
qid = int(q["frontendQuestionId"])
if slug in question_details and qid < 3900:
if slug in question_details:
@idoocs idoocs added the md Issues or Pull requests relate to .md files label May 18, 2026
@yanglbme yanglbme merged commit 96ae783 into main May 18, 2026
8 checks passed
@yanglbme yanglbme deleted the dev branch May 18, 2026 03:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core team Issues or pull requests from core team json Issues or Pull requests relate to .json files md Issues or Pull requests relate to .md files py Issues or Pull requests relate to .py code rs Issues or Pull requests relate to .rs code txt

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants