Help for this page

Select Code to Download


  1. or download this
    $q = new Tree;
    $q->addnode(4);
    ...
    $q->addnode(7);
    $q->addnode(19);
    $q->display;
    
  2. or download this
      4
     / \
    ...
        7  15
            \
            19
    
  3. or download this
    3
    3
    
  4. or download this
    19
    19
    19
    19
    19