mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2025-07-09 19:44:45 +08:00
Update 剑指Offer05.替换空格.md
This commit is contained in:
@ -265,8 +265,8 @@ func replaceSpace(s string) string {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
python:
|
#python:
|
||||||
####因为字符串是不可变类型,所以操作字符串需要将其转换为列表,因此空间复杂度不可能不为O(1)
|
#因为字符串是不可变类型,所以操作字符串需要将其转换为列表,因此空间复杂度不可能不为O(1)
|
||||||
```python
|
```python
|
||||||
class Solution:
|
class Solution:
|
||||||
def replaceSpace(self, s: str) -> str:
|
def replaceSpace(self, s: str) -> str:
|
||||||
|
Reference in New Issue
Block a user