二叉树遍历方式汇总
#include <bits/stdc++.h>
using namespace std;
struct BiTreeNode{
int val;
BiTreeNode* left_child;
BiTreeNode* right_child;
BiTreeNode(int x) : val(x), left_child(NULL), right_child(NULL) {}
};
BiTreeNode* init_tree(vector<int&g.
原创
2020-06-25 23:04:04 ·
108 阅读 ·
0 评论