From 7dbbc3de12c6f5b835f84b26459ddd50a4b13d51 Mon Sep 17 00:00:00 2001 From: Yudong Jin Date: Mon, 5 Dec 2022 00:14:21 +0800 Subject: [PATCH] Update binary_search_tree.js --- codes/javascript/chapter_tree/binary_search_tree.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codes/javascript/chapter_tree/binary_search_tree.js b/codes/javascript/chapter_tree/binary_search_tree.js index 332525f..74b7250 100644 --- a/codes/javascript/chapter_tree/binary_search_tree.js +++ b/codes/javascript/chapter_tree/binary_search_tree.js @@ -7,7 +7,7 @@ const Tree = require("../include/TreeNode"); const { printTree } = require("../include/PrintUtil"); - /* 二叉搜索树 */ +/* 二叉搜索树 */ var root; function BinarySearchTree(nums) { @@ -143,4 +143,4 @@ console.log("\n删除结点 2 后,二叉树为\n"); printTree(getRoot()); remove(4); console.log("\n删除结点 4 后,二叉树为\n"); -printTree(getRoot()); \ No newline at end of file +printTree(getRoot());