当前位置:网站首页>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;
}
边栏推荐
猜你喜欢
Internet News: Tencent conference application market was officially launched; Soul went to Hong Kong to submit the listing application
[SUCTF2018]followme
618 what is the secret of dominating the list again? Nike's latest financial report gives the answer
二叉树专题--AcWing 3384. 二叉树遍历(已知先序遍历 边建树 边输出中序遍历)
全网显示 IP 归属地,是怎么实现的?
JSP webshell免杀——JSP的基础
LeetCode+ 76 - 80 暴搜专题
Jsp webshell Free from killing - The Foundation of JSP
QT学习日记8——资源文件添加
华为游戏初始化init失败,返回错误码907135000
随机推荐
js数组常用方法
集成学习概览
Start class, data analysis, high salary training plan, elite class
nodejs+express+mysql简单博客搭建
[SUCTF2018]followme
简洁、快速、节约内存的Excel处理工具EasyExcel
SPSS做Shapiro-Wilk正态分析
PCL point cloud to depth image
Point cloud projection picture
Internet News: Tencent conference application market was officially launched; Soul went to Hong Kong to submit the listing application
MYSQL环境配置
Dialogue Wu Gang: why do I believe in the rise of "big country brands"?
4. Random variables
二叉树专题--AcWing 1589. 构建二叉搜索树
UWA报告使用小技巧,你get了吗?(第四弹)
Mongodb quickly get started with some simple operations of mongodb command line
UVM - configuration mechanism
Session cookies and tokens
HDU1234 开门人和关门人(水题)
Shell programming 01_ Shell foundation