-
Notifications
You must be signed in to change notification settings - Fork 3
添加问题“3169.无需开会的工作日”的代码和题解 #1012
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
Signed-off-by: LetMeFly666 <814114971@qq.com>
Signed-off-by: LetMeFly666 <814114971@qq.com>
Signed-off-by: LetMeFly666 <814114971@qq.com>
Signed-off-by: LetMeFly666 <814114971@qq.com>
AC,5.02%,5.02% Signed-off-by: LetMeFly666 <814114971@qq.com>
Signed-off-by: LetMeFly666 <814114971@qq.com>
Signed-off-by: LetMeFly666 <814114971@qq.com>
AC,32.88%,96.40% Signed-off-by: LetMeFly666 <814114971@qq.com>
Signed-off-by: LetMeFly666 <814114971@qq.com>
Signed-off-by: LetMeFly666 <814114971@qq.com>
Signed-off-by: LetMeFly666 <814114971@qq.com>
Signed-off-by: LetMeFly666 <814114971@qq.com>
AC,74.09%,61.14% Signed-off-by: LetMeFly666 <814114971@qq.com>
AC,79.73%,72.97% Signed-off-by: LetMeFly666 <814114971@qq.com>
Signed-off-by: LetMeFly666 <814114971@qq.com>
Signed-off-by: LetMeFly666 <814114971@qq.com>
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.
wait for 今日の 单词们
https://github.com/LetMeFly666/LeetCode/pull/1012\#discussion_r2202717613 Signed-off-by: LetMeFly666 <814114971@qq.com>
Signed-off-by: LetMeFly666 <814114971@qq.com>
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.
|
bye copliot |
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 introduces a complete solution for LeetCode problem 3169 (“Count Days Without Meetings”), including problem description, explanation, and code in multiple languages, updates the main README to reference the new problem, and tidies up formatting in the language learning notes.
- Added problem statement, walkthrough, and AC code (C++, Python, Java, Go) for 3169.
- Updated README.md to include an entry for problem 3169.
- Cleaned up and added entries in Japanese and English learning note Markdown files.
Reviewed Changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| Solutions/Other-Japanese-LearningNotes.md | Added new Japanese vocabulary entries |
| Solutions/Other-English-LearningNotes-SomeWords.md | Removed stray characters and added new English words |
| Solutions/LeetCode 3169.无需开会的工作日.md | New problem write-up, explanation, and code examples |
| README.md | Inserted listing for problem 3169 |
| Codes/3169-count-days-without-meetings.py | Added Python implementation |
| Codes/3169-count-days-without-meetings.java | Added Java implementation |
| Codes/3169-count-days-without-meetings.go | Added Go implementation |
| Codes/3169-count-days-without-meetings.cpp | Added C++ implementation |
Comments suppressed due to low confidence (3)
Codes/3169-count-days-without-meetings.go:18
- The call to max is undefined in Go; consider replacing it with a conditional expression (e.g.,
if me[1] > last { last = me[1] }) or adding a small helper function for int max.
last = max(last, me[1])
Codes/3169-count-days-without-meetings.cpp:14
- This implementation uses
sortandmaxwithout including<algorithm>; add#include <algorithm>(and<vector>if needed) to ensure proper declarations.
sort(meetings.begin(), meetings.end());
Solutions/LeetCode 3169.无需开会的工作日.md:182
- In the Go code snippet,
maxisn’t built in; update the example to use a conditional assignment or include a helper function so that the snippet compiles correctly.
last = max(last, me[1])
By newSolution.py using GH on MacOS | close: #1011