更新 排版格式修复

This commit is contained in:
jinbudaily
2023-07-28 10:31:10 +08:00
parent e7c122482f
commit c6cf76bc00
35 changed files with 116 additions and 102 deletions

View File

@@ -433,7 +433,7 @@ class Solution {
}
```
### python:
### Python:
(版本一)先删除空白,然后整个反转,最后单词反转。
**因为字符串是不可变类型所以反转单词的时候需要将其转换成列表然后通过join函数再将其转换成列表所以空间复杂度不是O(1)**
@@ -974,4 +974,3 @@ char * reverseWords(char * s){
<a href="https://programmercarl.com/other/kstar.html" target="_blank">
<img src="../pics/网站星球宣传海报.jpg" width="1000"/>
</a>