Conversation
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
There was a problem hiding this comment.
Pull request overview
Adds indexing and documentation for Weekly Contest 509 problems, and introduces solution implementations for some of the newly listed problems (plus supplemental solution-file additions for Biweekly Contest 186 items).
Changes:
- Update solution index tables (CN/EN) and contest listings (CN/EN) to include Weekly Contest 509 (3982–3985).
- Add full multi-language solutions and writeups for 3982 (including TypeScript).
- Add solution source files + expanded writeups for 3978 and 3979 (Biweekly Contest 186).
Reviewed changes
Copilot reviewed 31 out of 33 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| solution/README.md | Adds Weekly Contest 509 entries to the main CN solution index. |
| solution/README_EN.md | Adds Weekly Contest 509 entries to the main EN solution index. |
| solution/CONTEST_README.md | Adds Weekly Contest 509 section (CN) with links to 3982–3985. |
| solution/CONTEST_README_EN.md | Adds Weekly Contest 509 section (EN) with links to 3982–3985. |
| solution/3900-3999/3985.Palindromic Subarray Sum/README.md | Adds CN problem statement stub for 3985. |
| solution/3900-3999/3985.Palindromic Subarray Sum/README_EN.md | Adds EN problem statement stub for 3985. |
| solution/3900-3999/3984.Divisible Game/README.md | Adds CN problem statement stub for 3984. |
| solution/3900-3999/3984.Divisible Game/README_EN.md | Adds EN problem statement stub for 3984. |
| solution/3900-3999/3983.Subsequence After One Replacement/README.md | Adds CN problem statement stub for 3983. |
| solution/3900-3999/3983.Subsequence After One Replacement/README_EN.md | Adds EN problem statement stub for 3983. |
| solution/3900-3999/3982.Sum of Integers with Maximum Digit Range/Solution.ts | Adds TypeScript implementation for 3982. |
| solution/3900-3999/3982.Sum of Integers with Maximum Digit Range/Solution.py | Adds Python implementation for 3982. |
| solution/3900-3999/3982.Sum of Integers with Maximum Digit Range/Solution.java | Adds Java implementation for 3982. |
| solution/3900-3999/3982.Sum of Integers with Maximum Digit Range/Solution.go | Adds Go implementation for 3982. |
| solution/3900-3999/3982.Sum of Integers with Maximum Digit Range/Solution.cpp | Adds C++ implementation for 3982. |
| solution/3900-3999/3982.Sum of Integers with Maximum Digit Range/README.md | Adds CN writeup + multi-language code snippets for 3982. |
| solution/3900-3999/3982.Sum of Integers with Maximum Digit Range/README_EN.md | Adds EN writeup + multi-language code snippets for 3982. |
| solution/3900-3999/3979.Maximum Valid Pair Sum/Solution.ts | Adds TypeScript implementation for 3979. |
| solution/3900-3999/3979.Maximum Valid Pair Sum/Solution.py | Adds Python implementation for 3979. |
| solution/3900-3999/3979.Maximum Valid Pair Sum/Solution.java | Adds Java implementation for 3979. |
| solution/3900-3999/3979.Maximum Valid Pair Sum/Solution.go | Adds Go implementation for 3979. |
| solution/3900-3999/3979.Maximum Valid Pair Sum/Solution.cpp | Adds C++ implementation for 3979. |
| solution/3900-3999/3979.Maximum Valid Pair Sum/README.md | Expands CN solution writeup + adds code snippets for 3979. |
| solution/3900-3999/3979.Maximum Valid Pair Sum/README_EN.md | Expands EN solution writeup + adds code snippets for 3979. |
| solution/3900-3999/3978.Unique Middle Element/Solution.ts | Adds TypeScript implementation for 3978. |
| solution/3900-3999/3978.Unique Middle Element/Solution.py | Adds Python implementation for 3978. |
| solution/3900-3999/3978.Unique Middle Element/Solution.java | Adds Java implementation for 3978. |
| solution/3900-3999/3978.Unique Middle Element/Solution.go | Adds Go implementation for 3978. |
| solution/3900-3999/3978.Unique Middle Element/Solution.cpp | Adds C++ implementation for 3978. |
| solution/3900-3999/3978.Unique Middle Element/README.md | Expands CN solution writeup + adds code snippets for 3978. |
| solution/3900-3999/3978.Unique Middle Element/README_EN.md | Expands EN solution writeup + adds code snippets for 3978. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| if (mx < r) { | ||
| mx = r; | ||
| ans = x; | ||
| } else if (mx == r) { |
| if (mx < r) { | ||
| mx = r; | ||
| ans = x; | ||
| } else if (mx == r) { |
| if (mx < r) { | ||
| mx = r; | ||
| ans = x; | ||
| } else if (mx == r) { |
|
|
||
| <ul> | ||
| <li><code>1 <= nums.length <= 10<sup>5</sup></code></li> | ||
| <li><code>1 <= nums[i] <= 10<sup>9</sup></code></li> |
| <!-- solution:start --> | ||
|
|
||
| ### 方法一 | ||
| ### 方法一:模拟 |
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.