SplayTree.js
/**
   * Find the largest key in the given tree
   * @param {object} n - The node as the root
   * @returns {object} The node with the largest key
   */
Find the largest key in the given tree
@param {object} n - The node as the root
@returns {object} The node with the largest key
Find the largest key in the given tree @param { object } n - The node as the root @returns { object } The node with the largest key
maxNode(n = this._root) {
    if (n) {
      while (n.right) n = n.right;
    }
    return n;
  }
maxNode ( n = this . _root ) { if ( n ) { while ( n . right ) n = n . right ; } return n ; }
Find the largest key in the given tree
 @param {object} n - The node as the root
 @returns {object} The node with the largest key
Find the largest key in the given tree @param { object } n - The node as the root @returns { object } The node with the largest key