diff --git a/notes/54. 二叉查找树的第 K 个结点.md b/notes/54. 二叉查找树的第 K 个结点.md index b721f135..46edafd2 100644 --- a/notes/54. 二叉查找树的第 K 个结点.md +++ b/notes/54. 二叉查找树的第 K 个结点.md @@ -15,6 +15,7 @@ private int val; private int count = 0; public int findTargetNode(TreeNode root, int cnt) { + count = 0; inOrder(root, cnt); return val; }