fix: Correct function type

This commit is contained in:
rosethorn999 2024-01-29 13:42:49 -08:00
parent 7f3356769e
commit d15216c285
1 changed files with 1 additions and 1 deletions

View File

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