当前位置:网站首页>二叉树专题--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;
}
边栏推荐
猜你喜欢

如何用list组件实现tabbar标题栏

从.bag文件中读取并保存.jpg图片和.pcd点云

软件产品管理系统有哪些?12个最佳产品管理工具盘点

《实习报告》Skywalking分布式链路追踪?

js数组常用方法

nodejs+express+mysql简单博客搭建

Internet News: Tencent conference application market was officially launched; Soul went to Hong Kong to submit the listing application

14.信号量的代码实现

12. Process synchronization and semaphore

13. Semaphore critical zone protection
随机推荐
全网显示 IP 归属地,是怎么实现的?
MySQL lethal serial question 3 -- are you familiar with MySQL locks?
Shapiro Wilk normal analysis by SPSS
Dialogue Wu Gang: why do I believe in the rise of "big country brands"?
《实习报告》Skywalking分布式链路追踪?
PCL eigen introduction and simple use
(5) Gear control setting of APA scene construction
最详细MySql安装教程
Windows环境MySQL8忘记密码文件解决方案
The URL in the RTSP setup header of the axis device cannot take a parameter
js setTimeout()与面试题
【AGC】构建服务3-认证服务示例
The nanny level tutorial of flutter environment configuration makes the doctor green to the end
From Read and save in bag file Jpg pictures and PCD point cloud
PCL Eigen介绍及简单使用
【快应用】text组件里的文字很多,旁边的div样式会被拉伸如何解决
JSP webshell免杀——webshell免杀
01 install virtual machine
MySQL数据库远程访问权限设置
Retrofit's callback hell is really vulnerable in kotlin synergy mode!