-
Notifications
You must be signed in to change notification settings - Fork 3
update: 添加问题“3516.找到最近的人”的代码和题解 #1111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Line 23: Char 21: error: cannot find function `check2` in this scope (solution.rs)
|
23 | if !check2(&points, i, j) {
| ^^^^^^ not found in this scope
|
help: consider using the associated function on `Self`
|
23 | if !Self::check2(&points, i, j) {
| ++++++
Line 31: Char 25: error: cannot find function `check3` in this scope (solution.rs)
|
31 | if !check3(&points, i, j, k) {
| ^^^^^^ not found in this scope
|
help: consider using the associated function on `Self`
|
31 | if !Self::check3(&points, i, j, k) {
| ++++++
For more information about this error, try `rustc --explain E0425`.
error: could not compile `prog` (bin "prog") due to 2 previous errors
Line 23: Char 21: error: cannot find function `check2` in this scope (solution.rs)
|
8 | fn check2(&self, points: &Vec<Vec<i32>>, i: usize, j: usize) -> bool {
| ------ a method by that name is available on `Self` here
...
23 | if !check2(&points, i, j) {
| ^^^^^^ not found in this scope
Line 31: Char 25: error: cannot find function `check3` in this scope (solution.rs)
|
12 | fn check3(&self, points: &Vec<Vec<i32>>, i: usize, j: usize, k: usize) -> bool {
| ------ a method by that name is available on `Self` here
...
31 | if !check3(&points, i, j, k) {
| ^^^^^^ not found in this scope
For more information about this error, try `rustc --explain E0425`.
error: could not compile `prog` (bin "prog") due to 2 previous errors
cpp - AC,100.00%,21.43% py - AC,100.00%,35.00% Line 10: Char 13: undefined: abs (solution.go)
go - AC,100.00%,25.00% rust - AC,100.00%,9.09%
Signed-off-by: LetMeFly666 <814114971@qq.com>
There was a problem hiding this 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 adds a solution for LeetCode problem 3516 "Find Closest Person" including implementation code and solution documentation. The change simplifies git commit messages by removing unnecessary text about Mac overheating.
- Adds complete solution files for problem 3516 including documentation and code implementations
- Updates git commit message template to remove Mac overheating reference
- Adds supplementary implementations for problem 3025 in Java and Rust
Reviewed Changes
Copilot reviewed 15 out of 15 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| newSolution.py | Simplified git commit message template by removing Mac overheating text |
| Solutions/LeetCode 3516.找到最近的人.md | Added complete problem solution documentation with multiple language implementations |
| Solutions/LeetCode 3025.人员站位的方案数I.md | Added Java and Rust implementations to existing solution |
| Codes/*.{cpp,py,go,rs} | Added solution code files for problem 3516 in multiple languages |
| README.md | Added entry for problem 3516 with links to solution and documentation |
| Solutions/Other-* | Minor updates to English learning notes and removed comment headers |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
LetMeFly666
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Update Solutions/LeetCode 3516.找到最近的人.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
By newSolution.py using GH on MacOS | close: #1110