Skip to content

update: 添加问题“153.寻找旋转排序数组中的最小值”的代码和题解 + update: 添加问题“154. 寻找旋转排序数组中的最小值 II”的代码和题解 + refactor: launch.json + newSolution.py: Linux support#1591

Closed
LetMeFly666 wants to merge 10 commits into
masterfrom
153

Conversation

@LetMeFly666
Copy link
Copy Markdown
Owner

@LetMeFly666 LetMeFly666 commented May 16, 2026

…st time (#1589)

禁止code-server docker在第一次debug C++文件前先花费数十分钟下载一个15.5M的debug info文件

最近部署code server(vscode docker),容器重启后第一次debug cpp时会:
Stopped due to shared library event (no libraries added or removed)
Loaded '/lib64/ld-linux-x86-64.so.2'. Symbols loaded.
Downloading 15.52 M separate debug info for /lib64/libstdc++.so.6...
用户体验很不好
merge by hand,和之前不等价的是:
1. tasks由cppbuild改为了shell
2. linux下tasks isDefault也改为了true
目前只在linux测试过
这json有些年头了哈哈
Copilot AI review requested due to automatic review settings May 16, 2026 12:02
@LetMeFly666 LetMeFly666 requested a review from Tisfy as a code owner May 16, 2026 12:02
@LetMeFly666 LetMeFly666 added the 题解 Solution label May 16, 2026
@LetMeFly666 LetMeFly666 self-assigned this May 16, 2026
@LetMeFly666 LetMeFly666 added the under merge pr准备就绪 请做merge前最后的检查 label May 16, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds the solution and writeup for LeetCode 153 (Find Minimum in Rotated Sorted Array), plus auxiliary scratch/config updates and a couple of unrelated solution additions.

Changes:

  • New C++ solution for problem 153 (binary search using nums.back() as the pivot reference), plus README index entry.
  • Additional C++ solutions: 0704 binary search (20260515) and 2784 O(1)-space variant.
  • Cross-platform consolidation of .vscode/tasks.json and launch.json (single task/config with windows/linux/osx overrides), plus housekeeping updates to test.cpp, toSay.md, .commitmsg, and the English vocabulary notes.

Reviewed changes

Copilot reviewed 10 out of 11 changed files in this pull request and generated no comments.

Show a summary per file
File Description
Codes/0153-find-minimum-in-rotated-sorted-array.cpp New binary-search solution for problem 153.
Codes/0704-binary-search_20260515.cpp New revisit solution for problem 704.
Codes/2784-check-if-array-is-good_O1Space.cpp New O(1)-space solution for problem 2784.
README.md Adds index row linking problem 153 resources.
.vscode/tasks.json Consolidates build tasks into one cross-platform task.
.vscode/launch.json Consolidates debug configs into platform-conditioned entries.
test.cpp Scratch sandbox update (vector/string demo).
toSay.md Removes the previous note file.
.commitmsg Clears previous commit message body.
Solutions/Other-English-LearningNotes-SomeWords.md Appends "descendant" to vocabulary list.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6949519a13

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread README.md Outdated
@LetMeFly666
Copy link
Copy Markdown
Owner Author

LetMeFly666 commented May 16, 2026

Let's try double issue in once merge #1590

@Tisfy Tisfy changed the title update: 添加问题“153.寻找旋转排序数组中的最小值”的代码和题解 update: 添加问题“153.寻找旋转排序数组中的最小值”的代码和题解 + update: 添加问题“154. 寻找旋转排序数组中的最小值 II”的代码和题解 + refactor: launch.json May 16, 2026
@LetMeFly666
Copy link
Copy Markdown
Owner Author

后续开始[154. 寻找旋转排序数组中的最小值 II](https://leetcode.cn/problems/find-minimum-in-rotated-sorted-array-ii/)

cc @Tisfy

Copy link
Copy Markdown
Collaborator

@Tisfy Tisfy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Get

@LetMeFly666 LetMeFly666 added the enhancement New feature or request label May 16, 2026
@LetMeFly666 LetMeFly666 changed the title update: 添加问题“153.寻找旋转排序数组中的最小值”的代码和题解 + update: 添加问题“154. 寻找旋转排序数组中的最小值 II”的代码和题解 + refactor: launch.json update: 添加问题“153.寻找旋转排序数组中的最小值”的代码和题解 + update: 添加问题“154. 寻找旋转排序数组中的最小值 II”的代码和题解 + refactor: launch.json + newSolution.py: Linux support May 16, 2026
@LetMeFly666 LetMeFly666 deleted the 153 branch May 16, 2026 12:34
@LetMeFly666
Copy link
Copy Markdown
Owner Author

see #1592 for more

LetMeFly666 added a commit that referenced this pull request May 16, 2026
…小值 II”的代码和题解 + refactor: launch.json + newSolution.py: Linux support (#1592)

* test: try 15.5M libstdc++.so.6

* feat: stop code-server docker downloading 15.5M before dbging cpp first time (#1589)

禁止code-server docker在第一次debug C++文件前先花费数十分钟下载一个15.5M的debug info文件

最近部署code server(vscode docker),容器重启后第一次debug cpp时会:
Stopped due to shared library event (no libraries added or removed)
Loaded '/lib64/ld-linux-x86-64.so.2'. Symbols loaded.
Downloading 15.52 M separate debug info for /lib64/libstdc++.so.6...
用户体验很不好

* feat: launch.json+tasks.json合并(平台condition) (#1589)

merge by hand,和之前不等价的是:
1. tasks由cppbuild改为了shell
2. linux下tasks isDefault也改为了true
目前只在linux测试过
这json有些年头了哈哈

* 153: half.cpp (#1588)

* 153: half.cpp (#1588) 天呐

* 704: AC.cpp (#1588) - 二分左闭右开

AC,100.00%,70.15%

* 153: WA.cpp (#1588) - 二分左闭右开

* 153: AC.cpp (#1588) - 二分左闭右开

AC,100.00%,21.06%

* update: 添加问题“153.寻找旋转排序数组中的最小值”的代码和题解 (#1591)

Signed-off-by: LetMeFly666 <Tisfy@qq.com>

* fix: newSolution.py's rerun at next day (#1591)

#1591 (comment)

* feat: newSolution.py Linux's name support (#1591)

* feat: newSolution.py python3.12's \\ in """ (#1591)

* 154: WA.cpp (#1590) - output: -1094795586 - 0/193 accpeted

* 154: WA.cpp (#1590) - output: -1094795586 - 1/193 accpeted

* 154: AC.cpp (#1590) - AC,100.00%,17.74%

* update: 添加问题“154.寻找旋转排序数组中的最小值II”的代码和题解 (#1592)

Signed-off-by: LetMeFly666 <Tisfy@qq.com>

* docs: VSCode Docker(Code Server)首次调试C++长时间下载debuginfo问题 (#1589)

---------

Signed-off-by: LetMeFly666 <Tisfy@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request under merge pr准备就绪 请做merge前最后的检查 题解 Solution

Projects

None yet

3 participants