MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / inorder

Function inorder

data_structures/binary_tree/treap.py:109–118  ·  view source on GitHub ↗

Just recursive print of a tree

(root: Node | None)

Source from the content-addressed store, hash-verified

107
108
109def inorder(root: Node | None) -> None:
110 """
111 Just recursive print of a tree
112 """
113 if not root: # None
114 return
115 else:
116 inorder(root.left)
117 print(root.value, end=",")
118 inorder(root.right)
119
120
121def interact_treap(root: Node | None, args: str) -> Node | None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected