初步实现(不知道对不对😭)
This commit is contained in:
@@ -4,7 +4,14 @@
|
||||
|
||||
|
||||
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);
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user