From d15216c28536d40194a9469d4d4ac88f23f238b6 Mon Sep 17 00:00:00 2001 From: rosethorn999 <24700793+rosethorn999@users.noreply.github.com> Date: Mon, 29 Jan 2024 13:42:49 -0800 Subject: [PATCH] fix: Correct function type --- problems/0235.二叉搜索树的最近公共祖先.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/problems/0235.二叉搜索树的最近公共祖先.md b/problems/0235.二叉搜索树的最近公共祖先.md index b691a45a..2a11f9f4 100644 --- a/problems/0235.二叉搜索树的最近公共祖先.md +++ b/problems/0235.二叉搜索树的最近公共祖先.md @@ -298,7 +298,7 @@ class Solution: return self.traversal(root, p, q) ``` -迭代法(版本二)精简 +递归法(版本二)精简 ```python class Solution: def lowestCommonAncestor(self, root, p, q):