/** * @return mixed */ function lastKey() { return $this->avl->last()->first; }
/** * @return mixed * @throws EmptyException when the tree is empty */ function last() { return $this->bst->last(); }
/** * @return mixed * @throws EmptyException when the tree is empty */ function last() { return $this->avl->last(); }