Merge pull request #2431 from rosethorn999/patch

fix: Correct function type
This commit is contained in:
程序员Carl
2024-02-11 17:23:36 +08:00
committed by GitHub

View File

@ -298,7 +298,7 @@ class Solution:
return self.traversal(root, p, q)
```
迭代法(版本二)精简
递归法(版本二)精简
```python
class Solution:
def lowestCommonAncestor(self, root, p, q):