We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7bc6d40 commit 3ddb110Copy full SHA for 3ddb110
2 files changed
src/main/java/com/thealgorithms/datastructures/trees/AVLTree.java
@@ -7,12 +7,12 @@
7
*
8
* @author Raghu0703
9
*/
10
-public class AVLTree {
+public final class AVLTree {
11
12
/**
13
* Node class representing each element in the AVL Tree
14
15
- class Node {
+ static class Node {
16
int data;
17
int height;
18
Node left, right;
src/main/java/com/thealgorithms/datastructures/trees/BinarySearchTree.java
@@ -5,12 +5,12 @@
5
6
-public class BinarySearchTree {
+public final class BinarySearchTree {
* Node class representing each element in the BST
0 commit comments