当前位置:网站首页>Special topic of binary tree -- acwing 3384 Binary tree traversal (known preorder traversal, while building a tree, while outputting middle order traversal)
Special topic of binary tree -- acwing 3384 Binary tree traversal (known preorder traversal, while building a tree, while outputting middle order traversal)
2022-07-02 10:59:00 【Morgannr】
#define _CRT_SECURE_NO_WARNINGS 1
#include <bits/stdc++.h>
using namespace std;
//#define int long long
//#define map unordered_map
using namespace std;
void dfs()
{
char ch; cin>>ch;
if(ch == '#') return ;
dfs();
cout << ch << ' ';
dfs();
}
int main()
{
dfs();
return 0;
}
边栏推荐
猜你喜欢
华为快应用中如何实现同时传递事件对象和自定义参数
Introduction to MySQL 8 DBA foundation tutorial
shell编程01_Shell基础
最详细MySql安装教程
V2X-Sim数据集(上海交大&纽约大学)
[visual studio] visual studio 2019 community version cmake development environment installation (download | install relevant components | create compilation execution project | error handling)
实验电镜距离测量之Matlab处理
1287_ Implementation analysis of prvtaskistasksuspended() interface in FreeRTOS
Beautiful and intelligent, Haval H6 supreme+ makes Yuanxiao travel safer
SUS系统可用性量表
随机推荐
UVM——Callback
AI技术产业热点分析
The URL in the RTSP setup header of the axis device cannot take a parameter
2022爱分析· 国央企数字化厂商全景报告
PCL之滤波
实验电镜距离测量之Matlab处理
C#中索引器
Read H264 parameters from mediarecord recording
如何用list组件实现tabbar标题栏
集成学习概览
二叉树专题--AcWing 1589. 构建二叉搜索树
Sus system availability scale
618 what is the secret of dominating the list again? Nike's latest financial report gives the answer
力扣(LeetCode)182. 查找重复的电子邮箱(2022.07.01)
P1055 [NOIP2008 普及组] ISBN 号码
HDU1228 A + B(map映射)
Easyexcel, a concise, fast and memory saving excel processing tool
华为游戏初始化init失败,返回错误码907135000
二叉树专题--P1030 [NOIP2001 普及组] 求先序排列
二叉树专题--AcWing 1497. 树的遍历(利用后、中序遍历,构建二叉树)