Resolve issue because of random module

pull/1140/head
santhoshtk 2023-01-13 15:58:31 +05:30
parent b2a951dd65
commit c156a651ae
1 changed files with 3 additions and 2 deletions

View File

@ -182,8 +182,9 @@ if __name__ == "__main__":
bTree = IterativeTraversal()
# Create Binary Tree with random values
for _ in range(15):
bTree.insert(randint(0, 1000))
testValues = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
for value in testValues:
bTree.insert(value)
print("Iterative Outputs")
print(bTree.preOrder())