Skip to content

Commit 3541571

Browse files
Added AVL tree implementation with detailed comments
1 parent 406ca5e commit 3541571

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/com/thealgorithms/tree/AVLTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ private Node insertRecursive(Node node, int key) {
9595
node.right = insertRecursive(node.right, key);
9696
} else {
9797
return node; // duplicates ignored
98-
}
98+
}
9999

100100
updateHeight(node);
101101
return balanceNode(node);

0 commit comments

Comments
 (0)