Help for this page

Select Code to Download


  1. or download this
    use My::Bintree;
    
    ...
    # min: (index: 7, value: 0)
    # searched for value of 5: (index: 1, value: 5),(index: 4, value: 5)
    
  2. or download this
    # construct a binary tree and search for max/min values given custom d
    +ata and comparator
    # by bliako for https://perlmonks.org/?node_id=11100889
    ...
        # END
        done_testing($nt);
    }