fix: Correct function type
This commit is contained in:
parent
7f3356769e
commit
d15216c285
|
|
@ -298,7 +298,7 @@ class Solution:
|
||||||
return self.traversal(root, p, q)
|
return self.traversal(root, p, q)
|
||||||
```
|
```
|
||||||
|
|
||||||
迭代法(版本二)精简
|
递归法(版本二)精简
|
||||||
```python
|
```python
|
||||||
class Solution:
|
class Solution:
|
||||||
def lowestCommonAncestor(self, root, p, q):
|
def lowestCommonAncestor(self, root, p, q):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue