Just recursive print of a tree
(root: Node | None)
| 107 | |
| 108 | |
| 109 | def 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 | |
| 121 | def interact_treap(root: Node | None, args: str) -> Node | None: |
nothing calls this directly
no outgoing calls
no test coverage detected