mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2025-07-08 16:54:50 +08:00
删除多余空格和无用空格
Remove fault and redundant bracket
This commit is contained in:
@ -183,7 +183,7 @@ public:
|
|||||||
int end = 0; // 反转的单词在字符串里终止位置
|
int end = 0; // 反转的单词在字符串里终止位置
|
||||||
bool entry = false; // 标记枚举字符串的过程中是否已经进入了单词区间
|
bool entry = false; // 标记枚举字符串的过程中是否已经进入了单词区间
|
||||||
for (int i = 0; i < s.size(); i++) { // 开始反转单词
|
for (int i = 0; i < s.size(); i++) { // 开始反转单词
|
||||||
if ((!entry))) {
|
if (!entry) {
|
||||||
start = i; // 确定单词起始位置
|
start = i; // 确定单词起始位置
|
||||||
entry = true; // 进入单词区间
|
entry = true; // 进入单词区间
|
||||||
}
|
}
|
||||||
@ -380,4 +380,4 @@ func reverse(b *[]byte, left, right int) {
|
|||||||
* 作者微信:[程序员Carl](https://mp.weixin.qq.com/s/b66DFkOp8OOxdZC_xLZxfw)
|
* 作者微信:[程序员Carl](https://mp.weixin.qq.com/s/b66DFkOp8OOxdZC_xLZxfw)
|
||||||
* B站视频:[代码随想录](https://space.bilibili.com/525438321)
|
* B站视频:[代码随想录](https://space.bilibili.com/525438321)
|
||||||
* 知识星球:[代码随想录](https://mp.weixin.qq.com/s/QVF6upVMSbgvZy8lHZS3CQ)
|
* 知识星球:[代码随想录](https://mp.weixin.qq.com/s/QVF6upVMSbgvZy8lHZS3CQ)
|
||||||
<div align="center"><img src=../pics/公众号.png width=450 alt=> </img></div>
|
<div align="center"><img src=../pics/公众号.png width=450 alt=> </img></div>
|
||||||
|
Reference in New Issue
Block a user