Resolve issue because of random module
parent
b2a951dd65
commit
c156a651ae
|
@ -182,8 +182,9 @@ if __name__ == "__main__":
|
||||||
|
|
||||||
bTree = IterativeTraversal()
|
bTree = IterativeTraversal()
|
||||||
# Create Binary Tree with random values
|
# Create Binary Tree with random values
|
||||||
for _ in range(15):
|
testValues = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
|
||||||
bTree.insert(randint(0, 1000))
|
for value in testValues:
|
||||||
|
bTree.insert(value)
|
||||||
|
|
||||||
print("Iterative Outputs")
|
print("Iterative Outputs")
|
||||||
print(bTree.preOrder())
|
print(bTree.preOrder())
|
||||||
|
|
Loading…
Reference in New Issue