• Given an AVL-tree anAvlTree, returns the minimum element inside the tree. Raises an error is the tree is empty.

    Parameters

    • anAvlTree: AVLTree<any>

      the tree that is considered

    Returns any

    • the minimum element of the tree
    • if the tree is empty