kernel/src/runtime/BinarySearchTree.h
/**
         * Returns the maximum node in a given subtree.
         *
         * @param node Subtree to find the minimum value in
         */
Returns the maximum node in a given subtree.
@param node Subtree to find the minimum value in
Returns the maximum node in a given subtree . @param node Subtree to find the minimum value in
Leaf *findMax(Leaf *node) {
            if(!node) return nullptr;
            if(node->right) return this->findMax(node->right);
            else return node;
        }
Leaf * findMax ( Leaf * node ) { if ( ! node ) return nullptr ; if ( node -> right ) return this -> findMax ( node -> right ) ; else return node ; }
Returns the maximum node in a given subtree.
Returns the maximum node in a given subtree .