当前位置:网站首页>二叉树专题--AcWing 3384. 二叉树遍历(已知先序遍历 边建树 边输出中序遍历)
二叉树专题--AcWing 3384. 二叉树遍历(已知先序遍历 边建树 边输出中序遍历)
2022-07-02 07:21: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;
}
边栏推荐
- Shapiro Wilk normal analysis by SPSS
- 2022-06-17
- 14. Code implementation of semaphore
- 2. Hacking lab script off [detailed writeup]
- Win11 arm系统配置.net core环境变量
- Mongodb quickly get started with some simple operations of mongodb command line
- Flink calculates topn hot list in real time
- Jsp webshell Free from killing - The Foundation of JSP
- Database dictionary Navicat automatic generation version
- 从.bag文件中读取并保存.jpg图片和.pcd点云
猜你喜欢
随机推荐
HDU1234 开门人和关门人(水题)
js promise.all
UWA报告使用小技巧,你get了吗?(第四弹)
MySQL数据库远程访问权限设置
C#中索引器
Filtering of PCL
PCL eigen introduction and simple use
Set the playback speed during the playback of UOB equipment
正则及常用公式
记录 AttributeError: ‘NoneType‘ object has no attribute ‘nextcall‘
大华设备播放过程中设置播放速度
《实习报告》Skywalking分布式链路追踪?
数据库字典Navicat自动生成版本
Windows环境MySQL8忘记密码文件解决方案
Hdu1236 ranking (structure Sorting)
JSP webshell free -- webshell free
SUS系统可用性量表
Lunix reallocates root and home space memory
Mysql database remote access permission settings
js promise. all









