-
Notifications
You must be signed in to change notification settings - Fork 3
添加问题“386.字典序排数”的代码和题解 #975
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>
cpp - AC,100.00%,87.60% Signed-off-by: LetMeFly666 <814114971@qq.com>
while now % 10 == 9和if now == n不可以分开 否则now==n后now/=10后now%10还是可能等于9 py - AC,97.55%,98.68% Signed-off-by: LetMeFly666 <814114971@qq.com>
Signed-off-by: LetMeFly666 <814114971@qq.com>
Signed-off-by: LetMeFly666 <814114971@qq.com>
java - AC,83.25%,83.25% go - AC,100.00%,89.92% 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.
LGTM
|
@copilot 有点小慢嗷 |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.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 complete solution and supporting materials for LeetCode problem 386 (Lexicographical Numbers), along with updates to documentation and learning notes.
- Introduces a new Markdown write-up with problem description, reasoning, and time/space analysis.
- Adds multi-language code implementations (C++, Python, Java, Go) and updates the main README index.
- Supplements English vocabulary notes and an HTML styling snippet in separate files.
Reviewed Changes
Copilot reviewed 29 out of 29 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| tryGoPy/MGJW/realThisWeek/chat.deleted.md | New HTML snippet for styling a simple encryption system UI |
| Solutions/Other-English-LearningNotes-SomeWords.md | Added new vocabulary entries in an existing Markdown word list |
| Solutions/LeetCode 0386.字典序排数.md | New problem write-up, analysis, and multi-language code examples |
| README.md | Added entry for problem 0386 in the solution index table |
| Codes/0386-lexicographical-numbers.* | Standalone Python, Java, Go, and C++ solution files for problem 386 |
Comments suppressed due to low confidence (4)
Solutions/Other-English-LearningNotes-SomeWords.md:1208
- The extra separator rows (
|||) surrounding the new entries may break the Markdown table structure; consider removing or adjusting them to match existing table formatting.
|||
Solutions/LeetCode 0386.字典序排数.md:4
- The tag
字典树(Trie) is inaccurate for this problem; consider removing it or replacing it with a more appropriate algorithm tag.
tags: [题解, LeetCode, 中等, 深度优先搜索, 字典树]
Solutions/LeetCode 0386.字典序排数.md:62
- The list markers
++are not standard Markdown; consider using-or*for list items to ensure proper rendering.
++ 时间复杂度$O(n)$
Solutions/LeetCode 0386.字典序排数.md:77
- Including a non-standard
_ [1,2]toVector.hheader may hinder portability; consider using standard<vector>and proper namespace declarations.
#include "_[1,2]toVector.h"
By newSolution.py using GH on Windows | close: #974