diff options
| author | mo khan <mo.khan@gmail.com> | 2020-08-04 19:58:26 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-08-04 19:58:37 -0600 |
| commit | 6dd72268c1fae4f56b95f9a405eadcb5259e5686 (patch) | |
| tree | da8e0fb9af57a21ebf3c5a346c7c51bc34895503 /src/02/01/binary_tree.h | |
| parent | 08d2c8d0264219ee020824534a33bfda1e288a43 (diff) | |
Print out binary tree
Diffstat (limited to 'src/02/01/binary_tree.h')
| -rw-r--r-- | src/02/01/binary_tree.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/02/01/binary_tree.h b/src/02/01/binary_tree.h index 93a6f12..e30b71a 100644 --- a/src/02/01/binary_tree.h +++ b/src/02/01/binary_tree.h @@ -11,3 +11,4 @@ enum Traversal { INORDER = 1, PREORDER = 2, POSTORDER = 4 }; Node *initialize(int data); void traverse(Node *node, Visitor visitor, enum Traversal traversal); void destroy(Node *head); +void inspect(Node *head, int level); |
