Data Structures Lerax  v3.0-104-ge031
Opinionated Data Structures & Algorithms
Loading...
Searching...
No Matches
binary-tree.h
Go to the documentation of this file.
1
12
13#ifndef BINARY_TREE_H
14#define BINARY_TREE_H
15
16#ifndef BINARY_NODE_TYPE
17#define BINARY_NODE_TYPE int
18#endif
19#ifndef BINARY_NODE_FORMAT
20#define BINARY_NODE_FORMAT "%d"
21#endif
22
35
41typedef struct BinaryNode BinaryTree;
42
43#endif
struct BinaryNode BinaryTree
A binary tree.
Definition binary-tree.h:41
#define BINARY_NODE_TYPE
Definition binary-tree.h:17
A node in a binary tree.
Definition binary-tree.h:29
BINARY_NODE_TYPE value
Definition binary-tree.h:30
struct BinaryNode * left
Definition binary-tree.h:32
int height
Definition binary-tree.h:31
struct BinaryNode * right
Definition binary-tree.h:33