update 0203.移除链表元素: 添加复杂度

This commit is contained in:
Yuhao Ju
2023-03-12 11:25:46 +08:00
committed by GitHub
parent 549d37a54e
commit 98e05c38c1

View File

@ -118,6 +118,9 @@ public:
};
```
* 时间复杂度: O(n)
* 空间复杂度: O(1)
**设置一个虚拟头结点在进行移除节点操作:**
```CPP
@ -144,6 +147,9 @@ public:
```
* 时间复杂度: O(n)
* 空间复杂度: O(1)