MCPcopy Index your code
hub / github.com/TheAlgorithms/Python / main

Function main

data_structures/binary_tree/treap.py:158–172  ·  view source on GitHub ↗

After each command, program prints treap

()

Source from the content-addressed store, hash-verified

156
157
158def main() -> None:
159 """After each command, program prints treap"""
160 root = None
161 print(
162 "enter numbers to create a tree, + value to add value into treap, "
163 "- value to erase all nodes with value. 'q' to quit. "
164 )
165
166 args = input()
167 while args != "q":
168 root = interact_treap(root, args)
169 print(root)
170 args = input()
171
172 print("good by!")
173
174
175if __name__ == "__main__":

Callers 1

treap.pyFile · 0.70

Calls 1

interact_treapFunction · 0.85

Tested by

no test coverage detected