Esempio n. 1
0
def setup_multiple_adds():
    x = BinaryTree()
    x.add(10)
    x.add(5)
    x.add(19)
    x.add(17)
    x.add(16)
    x.add(18)
    x.add(23)
    x.add(20)
    return x
Esempio n. 2
0
def setup_one_add():
    x = BinaryTree()
    x.add(10)
    return x
Esempio n. 3
0
def setup_two_adds_right():
    x = BinaryTree()
    x.add(10)
    x.add(15)
    return x
Esempio n. 4
0
def setup_two_adds_left():
    x = BinaryTree()
    x.add(10)
    x.add(5)
    return x