update: 添加问题“153.寻找旋转排序数组中的最小值”的代码和题解 + update: 添加问题“154. 寻找旋转排序数组中的最小值 II”的代码和题解 + refactor: launch.json + newSolution.py: Linux support#1591
Conversation
…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有些年头了哈哈
AC,100.00%,70.15%
AC,100.00%,21.06%
Signed-off-by: LetMeFly666 <Tisfy@qq.com>
There was a problem hiding this comment.
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.jsonandlaunch.json(single task/config withwindows/linux/osxoverrides), plus housekeeping updates totest.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.
There was a problem hiding this comment.
💡 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".
|
Let's try double issue in once merge #1590 |
|
后续开始 cc @Tisfy |
|
see #1592 for more |
…小值 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>
By newSolution.py using GH on Linux(or others)