第二处问题修改

This commit is contained in:
hbm666
2023-08-27 20:15:48 +08:00
parent e48b94f97d
commit fd5a171e88

View File

@ -311,7 +311,7 @@ class Solution {
``` ```
```java ```java
//解法三:双反转+移位,在原始数组上进行反转。空间复杂度O(1) //解法三:双反转+移位,String 的 toCharArray() 方法底层会 new 一个和原字符串相同大小的 char 数组,空间复杂度O(n)
class Solution { class Solution {
/** /**
* 思路: * 思路:
@ -976,3 +976,4 @@ char * reverseWords(char * s){
<a href="https://programmercarl.com/other/kstar.html" target="_blank"> <a href="https://programmercarl.com/other/kstar.html" target="_blank">
<img src="../pics/网站星球宣传海报.jpg" width="1000"/> <img src="../pics/网站星球宣传海报.jpg" width="1000"/>
</a> </a>