当前位置:网站首页>二叉树专题--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;
}
边栏推荐
- UWA report uses tips. Did you get it? (the fourth bullet)
- Is this code PHP MySQL redundant?
- UVM - usage of common TLM port
- Internet News: Tencent conference application market was officially launched; Soul went to Hong Kong to submit the listing application
- 【AGC】如何解决事件分析数据本地和AGC面板中显示不一致的问题?
- 618 what is the secret of dominating the list again? Nike's latest financial report gives the answer
- 最详细MySql安装教程
- Read H264 parameters from mediarecord recording
- JSP webshell免殺——JSP的基礎
- 对话吴纲:我为什么笃信“大国品牌”的崛起?
猜你喜欢

Beautiful and intelligent, Haval H6 supreme+ makes Yuanxiao travel safer

4. Random variables

首份中国企业敏捷实践白皮书发布| 附完整下载

Operator-1 first acquaintance with operator

VSCode工具使用

最详细MySql安装教程

从MediaRecord录像中读取H264参数

Solutions to a series of problems in sqoop job creation

Leetcode+ 76 - 80 storm search topic

MongoDB 学习整理(条件操作符,$type 操作符,limit()方法,skip() 方法 和 sort() 方法)
随机推荐
Mysql database remote access permission settings
快应用中实现自定义抽屉组件
Thanos Receiver
12.进程同步与信号量
14. Code implementation of semaphore
UVM - configuration mechanism
Jsp webshell Free from killing - The Foundation of JSP
13.信号量临界区保护
MySQL lethal serial question 3 -- are you familiar with MySQL locks?
HDU1234 开门人和关门人(水题)
Dialogue Wu Gang: why do I believe in the rise of "big country brands"?
JSP webshell免殺——JSP的基礎
使用华为性能管理服务,按需配置采样率
C#中索引器
flume 190 INSTALL
从MediaRecord录像中读取H264参数
4.随机变量
UVM——Callback
华为AppLinking中统一链接的创建和使用
2.hacking-lab脚本关[详细writeup]