当前位置:网站首页>二叉树专题--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;
}
边栏推荐
- P1055 [noip2008 popularization group] ISBN number
- 记录 AttributeError: ‘NoneType‘ object has no attribute ‘nextcall‘
- 正则及常用公式
- MySQL lethal serial question 3 -- are you familiar with MySQL locks?
- 全网显示 IP 归属地,是怎么实现的?
- Flink submitter
- 《MySQL 8 DBA基础教程》简介
- Hdu1234 door opener and door closer (water question)
- PCL Eigen介绍及简单使用
- axis设备的rtsp setup头中的url不能带参
猜你喜欢

Kustomize使用手册

Solutions to a series of problems in sqoop job creation

Shapiro Wilk normal analysis by SPSS

如何使用IDE自动签名调试鸿蒙应用

Operator-1初识Operator

Read H264 parameters from mediarecord recording

13.信号量临界区保护

简洁、快速、节约内存的Excel处理工具EasyExcel

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

Common methods of JS array
随机推荐
Mysql database remote access permission settings
JSP webshell free -- webshell free
Importing tables from sqoop
如何使用IDE自动签名调试鸿蒙应用
Hdu1228 a + B (map mapping)
如何用list组件实现tabbar标题栏
LeetCode+ 76 - 80 暴搜专题
js promise.all
Record attributeerror: 'nonetype' object has no attribute 'nextcall‘
《MySQL 8 DBA基础教程》简介
1287_ Implementation analysis of prvtaskistasksuspended() interface in FreeRTOS
2022爱分析· 国央企数字化厂商全景报告
js promise. all
【AppLinking实战案例】通过AppLinking分享应用内图片
UWA report uses tips. Did you get it? (the fourth bullet)
Open the encrypted SQLite method with sqlcipher
MySQL environment configuration
Introduction to MySQL 8 DBA foundation tutorial
(5) Gear control setting of APA scene construction
Leetcode+ 76 - 80 storm search topic