public void insert(T element) { root = insert(root, element); }
public AVLNode(T element, AVLNode <T> left, AVLNode <T> right) { this.element = element; this.left = left; this.right = right; }
AVLNode <T> rotateLeftRight(AVLNode <T> k3) { k3.left = rotateLeft(k3.left); return(rotateRight(k3)); }
AVLNode <T> rotateRightLeft(AVLNode <T> k1) { k1.right = rotateRight(k1.right); return(rotateLeft(k1)); }
public void remove(T value) { root = remove(root, value); }
public bool isEmpty(AVLNode <T> node) { return(node == null); }
private int height(AVLNode <T> node) { return(node == null ? -1 : node.height); //Bu değer 0 olunca kod hatalı çalışıyor }