当前位置:网站首页>二叉树专题--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;
}
边栏推荐
猜你喜欢
LabVIEW为什么浮点数会丢失精度
VSCode工具使用
Introduction to MySQL 8 DBA foundation tutorial
Jsp webshell Free from killing - The Foundation of JSP
2.hacking-lab脚本关[详细writeup]
"Matching" is true love, a new attitude for young people to make friends
The URL in the RTSP setup header of the axis device cannot take a parameter
(五)APA场景搭建之挡位控制设置
Flink submitter
14. Code implementation of semaphore
随机推荐
PCL 点云转深度图像
学习open62541 --- [66] UA_String的生成方法
JSP webshell free -- webshell free
VSCode工具使用
AppGallery Connect场景化开发实战—图片存储分享
Kustomize使用手册
Win11 arm系统配置.net core环境变量
Filtering of PCL
【快应用】Win7系统使用华为IDE无法运行和调试项目
Hdu1228 a + B (map mapping)
UVM - configuration mechanism
MySQL keyword
Jsp webshell Free from killing - The Foundation of JSP
Flink calculates topn hot list in real time
Mysql database remote access permission settings
MySQL lethal serial question 3 -- are you familiar with MySQL locks?
PCL之K-d树与八叉树
The nanny level tutorial of flutter environment configuration makes the doctor green to the end
14. Code implementation of semaphore
session-cookie与token