Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .commitmsg

This file was deleted.

58 changes: 20 additions & 38 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,62 +5,44 @@
"version": "0.2.0",
"configurations": [
{
"name": "go Launch file",
"type": "go",
"name": "C/C++ debug",
"request": "launch",
"mode": "debug",
"program": "${file}"
},
{
"name": "g++.exe - 生成和调试活动文件",
"type": "cppdbg",
"request": "launch",
"program": "${fileDirname}\\${fileBasenameNoExtension}.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${fileDirname}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath": "F:\\OtherApps\\Program\\MinGW\\bin\\gdb.exe",
"setupCommands": [
{
"description": "为 gdb 启用整齐打印",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"preLaunchTask": "C/C++: g++.exe 生成活动文件"
"externalConsole": false,
"MIMode": "gdb",
"cwd": "${fileDirname}",
"preLaunchTask": "C/C++ Build",
"windows": {
"program": "${fileDirname}\\${fileBasenameNoExtension}.exe",
"miDebuggerPath": "F:\\OtherApps\\Program\\MinGW\\bin\\gdb.exe",
},
"linux": {
"program": "${fileDirname}/${fileBasenameNoExtension}",
"miDebuggerPath": "/usr/bin/gdb",
},
},
{
"name": "C/C++: clang++ debug",
"name": "C/C++ debug MacOS",
"type": "lldb",
"request": "launch",
"program": "${fileDirname}/${fileBasenameNoExtension}",
"args": [],
"cwd": "${workspaceFolder}",
"preLaunchTask": "C/C++: clang++ build",
"preLaunchTask": "C/C++ Build",
},
{
"name": "g++ (code-server / Linux gdb)",
"type": "cppdbg",
"name": "go Launch file",
"type": "go",
"request": "launch",
"program": "${fileDirname}/${fileBasenameNoExtension}",
"args": [],
"stopAtEntry": false,
"cwd": "${fileDirname}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath": "/usr/bin/gdb",
"preLaunchTask": "C/C++: g++ (code-server build)",
"setupCommands": [
{
"description": "enable pretty printing",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
"mode": "debug",
"program": "${file}"
},
]
}
95 changes: 34 additions & 61 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "cppbuild",
"label": "C/C++: g++.exe 生成活动文件",
"command": "g++.exe",
"args": [
"-D_DEBUG",
"-g",
"${file}",
"-o",
"${fileDirname}\\${fileBasenameNoExtension}.exe",
],
"type": "shell",
"label": "C/C++ Build",
"options": {
"cwd": "${fileDirname}"
},
Expand All @@ -21,59 +14,39 @@
"kind": "build",
"isDefault": true
},
"detail": "调试器生成的任务。",
// "condition": {
// "os": "windows"
// }
},
{
"type": "cppbuild",
"label": "C/C++: clang++ build",
"command": "/usr/bin/clang++",
"args": [
"-D_DEBUG",
"-fcolor-diagnostics",
"-fansi-escape-codes",
"-g",
"${file}",
"-o",
"${fileDirname}/${fileBasenameNoExtension}"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
"detail": "Cross-platform C/C++ build task",
"windows": {
"command": "g++.exe",
"args": [
"-D_DEBUG",
"-g",
"${file}",
"-o",
"${fileDirname}\\${fileBasenameNoExtension}.exe",
],
},
"detail": "调试器生成的任务。"
},
{
"type": "cppbuild",
"label": "C/C++: g++ (code-server build)",
"command": "g++",
"args": [
"-D_DEBUG",
"-g",
"${file}",
"-o",
"${fileDirname}/${fileBasenameNoExtension}"
],
"options": {
"cwd": "${fileDirname}"
"linux": {
"command": "g++",
"args": [
"-D_DEBUG",
"-g",
"${file}",
"-o",
"${fileDirname}/${fileBasenameNoExtension}"
],
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": false
"osx": {
"command": "/usr/bin/clang++",
"args": [
"-D_DEBUG",
"-fcolor-diagnostics",
"-fansi-escape-codes",
"-g",
"${file}",
"-o",
"${fileDirname}/${fileBasenameNoExtension}"
],
},
"detail": "code-server / Linux g++ build"
}
},
],
"version": "2.0.0"
}
25 changes: 25 additions & 0 deletions Codes/0153-find-minimum-in-rotated-sorted-array.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* @Author: LetMeFly
* @Date: 2026-05-15 21:04:02
* @LastEditors: LetMeFly.xyz
* @LastEditTime: 2026-05-15 22:01:34
*/
#ifdef _DEBUG
#include "_[1,2]toVector.h"
#endif

class Solution {
public:
int findMin(vector<int>& nums) {
int l = 0, r = nums.size(); // 左闭右开
while (l < r) {
int m = (l + r) >> 1;
if (nums[m] > nums.back()) {
l = m + 1;
} else {
r = m;
}
}
return nums[l];
}
};
27 changes: 27 additions & 0 deletions Codes/0154-find-minimum-in-rotated-sorted-array-ii.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*
* @Author: LetMeFly
* @Date: 2026-05-16 20:33:53
* @LastEditors: LetMeFly.xyz
* @LastEditTime: 2026-05-16 20:44:41
*/
#ifdef _DEBUG
#include "_[1,2]toVector.h"
#endif

class Solution {
public:
int findMin(vector<int>& nums) {
int l = 0, r = nums.size() - 1; // 左右闭区间吧还是
while (l < r) {
int m = (l + r) >> 1;
if (nums[m] == nums[r]) {
r--;
} else if (nums[m] > nums[r]) {
l = m + 1;
} else {
r = m;
}
}
return nums[l];
}
};
26 changes: 26 additions & 0 deletions Codes/0704-binary-search_20260515.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*
* @Author: LetMeFly
* @Date: 2026-05-15 21:30:07
* @LastEditors: LetMeFly.xyz
* @LastEditTime: 2026-05-15 21:31:25
*/
Comment thread
LetMeFly666 marked this conversation as resolved.
#ifdef _DEBUG
#include "_[1,2]toVector.h"
#endif
class Solution {
public:
int search(vector<int>& nums, int target) {
int l = 0, r = nums.size();
while (l < r) {
int m = (l + r) >> 1;
if (nums[m] < target) {
l = m + 1;
} else if (nums[m] == target) {
return m;
} else {
r = m;
}
}
return -1;
}
};
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: LetMeFly
* @Date: 2022-05-19 18:48:53
* @LastEditors: LetMeFly.xyz
* @LastEditTime: 2026-05-14 06:06:48
* @LastEditTime: 2026-05-16 22:05:05
-->
# LetLeet Blog

Expand Down Expand Up @@ -139,6 +139,7 @@
|Verilog学习笔记 - 极简极入门级|<a href="https://blog.letmefly.xyz/2023/01/06/Other-Verilog-Note/">本平台博客</a>|<a href="https://letmefly.blog.csdn.net/article/details/128584160">CSDN博客</a>|
|Cloudflare Warp+,1.1.1.1,如何使用,如何获取免费流量,如何优选IP|<a href="https://blog.letmefly.xyz/2023/08/25/Other-VPN-CloudflareWarp+1.1.1.1">本平台博客</a>|无|
|VsCode容器开发 - VsCode连接远程服务器上的docker|<a href="https://blog.letmefly.xyz/2024/01/22/Other-VsCode-ConnectDockerOnRemoteMechine/">本平台博客</a>|<a href="https://letmefly.blog.csdn.net/article/details/135743708">CSDN博客</a>|
|VSCode Docker(Code Server)首次调试C++长时间下载debuginfo问题|<a href="https://blog.letmefly.xyz/2026/05/16/Other-VsCode-CodeServerDocker-StopDownloading15MgdbDebuginfod-gdb_debuginfod_docker_vscode_cpp_debugging_postmortem_2026/">本平台博客</a>|<a href="https://letmefly.blog.csdn.net/article/details/161147475">CSDN博客</a>|
|VsCode美化 - VsCode自定义 - VsCode自定义背景图|<a href="https://blog.letmefly.xyz/2023/08/10/Other-VsCode-Custome-BackgroundPic/">本平台博客</a>|<a href="https://letmefly.blog.csdn.net/article/details/132215972">CSDN博客</a>|
|VsCode自定义单词分隔符 - 还在为“中文不论多长都会被识别为一句话”而发愁吗?|<a href="https://blog.letmefly.xyz/2024/05/14/Other-VsCode-CustomeWordSeparators/">本平台博客</a>|<a href="https://letmefly.blog.csdn.net/article/details/138871269">CSDN博客</a>|
|VsCode启用右括号自动跳过(自动重写)|<a href="https://blog.letmefly.xyz/2025/03/25/Other-VsCode-StartAutoClosingOvertype/">本平台博客</a>|<a href="https://letmefly.blog.csdn.net/article/details/146515937">CSDN博客</a>|
Expand Down Expand Up @@ -245,6 +246,8 @@
|0150.逆波兰表达式求值|中等|<a href="https://leetcode.cn/problems/evaluate-reverse-polish-notation/" target="_blank">题目地址</a>|<a href="https://blog.letmefly.xyz/2022/07/31/LeetCode%200150.%E9%80%86%E6%B3%A2%E5%85%B0%E8%A1%A8%E8%BE%BE%E5%BC%8F%E6%B1%82%E5%80%BC/" target="_blank">题解地址</a>|<a href="https://letmefly.blog.csdn.net/article/details/126084278" target="_blank">CSDN题解</a>|<a href="https://leetcode.cn/problems/evaluate-reverse-polish-notation/solution/letmefly-150ni-bo-lan-biao-da-shi-qiu-zh-govc/" target="_blank">LeetCode题解</a>|
|0151.颠倒字符串中的单词|中等|<a href="https://leetcode.cn/problems/reverse-words-in-a-string/" target="_blank">题目地址</a>|<a href="https://blog.letmefly.xyz/2022/08/01/LeetCode%200151.%E9%A2%A0%E5%80%92%E5%AD%97%E7%AC%A6%E4%B8%B2%E4%B8%AD%E7%9A%84%E5%8D%95%E8%AF%8D/" target="_blank">题解地址</a>|<a href="https://letmefly.blog.csdn.net/article/details/126093751" target="_blank">CSDN题解</a>|<a href="https://leetcode.cn/problems/reverse-words-in-a-string/solution/letmefly-151dian-dao-zi-fu-chuan-zhong-d-81a8/" target="_blank">LeetCode题解</a>|
|0152.乘积最大子数组|中等|<a href="https://leetcode.cn/problems/maximum-product-subarray/" target="_blank">题目地址</a>|<a href="https://blog.letmefly.xyz/2022/08/01/LeetCode%200152.%E4%B9%98%E7%A7%AF%E6%9C%80%E5%A4%A7%E5%AD%90%E6%95%B0%E7%BB%84/" target="_blank">题解地址</a>|<a href="https://letmefly.blog.csdn.net/article/details/126094071" target="_blank">CSDN题解</a>|<a href="https://leetcode.cn/problems/maximum-product-subarray/solution/letmefly-152cheng-ji-zui-da-zi-shu-zu-dp-1lu9/" target="_blank">LeetCode题解</a>|
|0153.寻找旋转排序数组中的最小值|中等|<a href="https://leetcode.cn/problems/find-minimum-in-rotated-sorted-array/" target="_blank">题目地址</a>|<a href="https://blog.letmefly.xyz/2026/05/15/LeetCode%200153.%E5%AF%BB%E6%89%BE%E6%97%8B%E8%BD%AC%E6%8E%92%E5%BA%8F%E6%95%B0%E7%BB%84%E4%B8%AD%E7%9A%84%E6%9C%80%E5%B0%8F%E5%80%BC/" target="_blank">题解地址</a>|<a href="https://letmefly.blog.csdn.net/article/details/161146404" target="_blank">CSDN题解</a>|<a href="https://leetcode.cn/problems/find-minimum-in-rotated-sorted-array/solutions/3969494/letmefly-153xun-zhao-xuan-zhuan-pai-xu-s-wg4p/" target="_blank">LeetCode题解</a>|
|0154.寻找旋转排序数组中的最小值II|困难|<a href="https://leetcode.cn/problems/find-minimum-in-rotated-sorted-array-ii/" target="_blank">题目地址</a>|<a href="https://blog.letmefly.xyz/2026/05/16/LeetCode%200154.%E5%AF%BB%E6%89%BE%E6%97%8B%E8%BD%AC%E6%8E%92%E5%BA%8F%E6%95%B0%E7%BB%84%E4%B8%AD%E7%9A%84%E6%9C%80%E5%B0%8F%E5%80%BCII/" target="_blank">题解地址</a>|<a href="https://letmefly.blog.csdn.net/article/details/161146809" target="_blank">CSDN题解</a>|<a href="https://leetcode.cn/problems/find-minimum-in-rotated-sorted-array-ii/solutions/3969520/letmefly-154xun-zhao-xuan-zhuan-pai-xu-s-79qo/" target="_blank">LeetCode题解</a>|
|0155.最小栈|简单|<a href="https://leetcode.cn/problems/min-stack/" target="_blank">题目地址</a>|<a href="https://blog.letmefly.xyz/2022/08/03/LeetCode%200155.%E6%9C%80%E5%B0%8F%E6%A0%88/" target="_blank">题解地址</a>|<a href="https://letmefly.blog.csdn.net/article/details/126144246" target="_blank">CSDN题解</a>|<a href="https://leetcode.cn/problems/min-stack/solution/letmefly-155zui-xiao-zhan-by-tisfy-4z1o/" target="_blank">LeetCode题解</a>|
|0156.上下翻转二叉树|中等|<a href="https://leetcode.cn/problems/binary-tree-upside-down/" target="_blank">题目地址</a>|<a href="https://blog.letmefly.xyz/2022/05/29/LeetCode%200156.%E4%B8%8A%E4%B8%8B%E7%BF%BB%E8%BD%AC%E4%BA%8C%E5%8F%89%E6%A0%91" target="_blank">题解地址</a>|<a href="https://letmefly.blog.csdn.net/article/details/125028889" target="_blank">CSDN题解</a>|<a href="https://leetcode.cn/problems/partition-list/solution/letmefly-86fen-ge-lian-biao-by-tisfy-64z3/" target="_blank">LeetCode题解</a>|
|0157.用Read4读取N个字符|简单|<a href="https://leetcode.cn/problems/read-n-characters-given-read4/" target="_blank">题目地址</a>|<a href="https://blog.letmefly.xyz/2022/05/29/LeetCode%200157.%E7%94%A8Read4%E8%AF%BB%E5%8F%96N%E4%B8%AA%E5%AD%97%E7%AC%A6" target="_blank">题解地址</a>|<a href="https://letmefly.blog.csdn.net/article/details/125030886" target="_blank">CSDN题解</a>|<a href="https://leetcode.cn/problems/read-n-characters-given-read4/solution/letmefly-157yong-read4du-qu-nge-zi-fu-by-ve20/" target="_blank">LeetCode题解</a>|
Comment thread
LetMeFly666 marked this conversation as resolved.
Expand Down
Loading