Data Structures and Algorithm
This commit is contained in:
22
Java/data-structure-with-java/tree/avl/AVLNode.java
Normal file
22
Java/data-structure-with-java/tree/avl/AVLNode.java
Normal file
@@ -0,0 +1,22 @@
|
||||
package tree.avl;
|
||||
|
||||
class AVLNode{
|
||||
|
||||
AVLNode left, right;
|
||||
int data;
|
||||
int height;
|
||||
|
||||
public AVLNode(){
|
||||
left = null;
|
||||
right = null;
|
||||
data = 0;
|
||||
height = 0;
|
||||
}
|
||||
|
||||
public AVLNode(int n){
|
||||
left = null;
|
||||
right = null;
|
||||
data = n;
|
||||
height = 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user