SHARE
TWEET

Untitled

a guest Apr 23rd, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     public static void main(String[] args) {
  2.         SplayTree X = new SplayTree();
  3.         X.add(18)
  4.     }
  5.     /**
  6.      * Default constructor constructs an empty tree.
  7.      */
  8.     public SplayTree()
  9.     {
  10.         size = 0;
  11.     }
  12.    
  13.    
  14.     /**
  15.      * Needs to call addBST() later on to complete tree construction.
  16.      */
  17.     public SplayTree(E data)
  18.     {
  19.         root.data = data;
  20.         size = 1;
  21.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top