Polish the chapter of graph, hashing, appendix

This commit is contained in:
krahets
2023-04-09 03:09:06 +08:00
parent 56243ccc5b
commit 3f4e32b2b0
16 changed files with 151 additions and 151 deletions

View File

@@ -15,7 +15,7 @@ void binarySearchTree(List<int> nums) {
root = buildTree(nums, 0, nums.length - 1); // 构建二叉搜索树
}
/* 获取二叉树的根点 */
/* 获取二叉树的根点 */
TreeNode? getRoot() {
return root;
}
@@ -146,7 +146,7 @@ void main() {
/* 插入结点 */
node = insert(16);
print("\n插入点 16 后,二叉树为\n");
print("\n插入点 16 后,二叉树为\n");
printTree(getRoot());
/* 删除结点 */