Fix function call error and null safety (#491)

This commit is contained in:
liuyuxin
2023-05-14 01:19:06 +08:00
committed by GitHub
parent b52a98f178
commit 541f384e7c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -143,7 +143,7 @@ class AVLTree {
while (temp!.left != null) {
temp = temp.left;
}
node.right = removeHelper(node.right, temp!.val);
node.right = removeHelper(node.right, temp.val);
node.val = temp.val;
}
}