当前位置:网站首页>Special topic of binary tree -- acwing 3384 Binary tree traversal (known preorder traversal, while building a tree, while outputting middle order traversal)
Special topic of binary tree -- acwing 3384 Binary tree traversal (known preorder traversal, while building a tree, while outputting middle order traversal)
2022-07-02 10:59: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;
}
边栏推荐
- Oracle 笔记
- 12. Process synchronization and semaphore
- PCL eigen introduction and simple use
- 简洁、快速、节约内存的Excel处理工具EasyExcel
- Read H264 parameters from mediarecord recording
- Mysql database remote access permission settings
- Retrofit's callback hell is really vulnerable in kotlin synergy mode!
- 洛谷 P3398 仓鼠找 sugar(树上倍增 lca 判断树中两条路径是否相交 结论)
- JS settimeout() and interview questions
- 首份中国企业敏捷实践白皮书发布| 附完整下载
猜你喜欢

The URL in the RTSP setup header of the axis device cannot take a parameter

MongoDB 学习整理(条件操作符,$type 操作符,limit()方法,skip() 方法 和 sort() 方法)

Retrofit's callback hell is really vulnerable in kotlin synergy mode!

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

AI技术产业热点分析

shell编程01_Shell基础

SPSS做Shapiro-Wilk正态分析

13. Semaphore critical zone protection

【AI应用】海康威视iVMS-4200软件安装

Beautiful and intelligent, Haval H6 supreme+ makes Yuanxiao travel safer
随机推荐
JS settimeout() and interview questions
Learn open62541 -- [66] UA_ Generation method of string
MongoDB 学习整理(条件操作符,$type 操作符,limit()方法,skip() 方法 和 sort() 方法)
2022-06-17
AI技术产业热点分析
【ARK UI】HarmonyOS ETS的启动页的实现
AttributeError: type object ‘Image‘ has no attribute ‘fromarray‘
618 what is the secret of dominating the list again? Nike's latest financial report gives the answer
实验电镜距离测量之Matlab处理
Open the encrypted SQLite method with sqlcipher
QT学习日记7——QMainWindow
13. Semaphore critical zone protection
Dialogue Wu Gang: why do I believe in the rise of "big country brands"?
Kustomize user manual
In the face of uncertainty, the role of supply chain
axis设备的rtsp setup头中的url不能带参
Overview of integrated learning
Shell programming 01_ Shell foundation
P1055 [NOIP2008 普及组] ISBN 号码
shell编程01_Shell基础