Conversation
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Contributor
|
Images automagically compressed by Calibre's image-actions ✨ Compression reduced images by 83.2%, saving 772.1 KB.
|
There was a problem hiding this comment.
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.
| "lint-staged": { | ||
| "*.{js,ts,php,sql,md}": "prettier --write", | ||
| "*.py": "black -S", | ||
| "*.py": "py -m black -S", |
| @@ -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 | ||
|
|
||
| ``` |
| slug = q["titleSlug"] | ||
| qid = int(q["frontendQuestionId"]) | ||
| if slug in question_details and qid < 3900: | ||
| if slug in question_details: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.