Files
data-structures-and-algorithms/homework4/BiTree.h
T
2024-11-20 21:48:13 +08:00

20 lines
248 B
C++

#ifndef BITREE_H
#define BITREE_H
class BiTree {
public:
int data;
BiTree *left;
BiTree *right;
static bool is_empty(BiTree *bt);
static bool is_leaf(BiTree *bt);
static int sum_leaf(BiTree *bt);
};
#endif //BITREE_H